mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +08:00
17 lines
312 B
JavaScript
17 lines
312 B
JavaScript
|
|
import {Animation} from './animation';
|
|
|
|
|
|
class SlideIn extends Animation {
|
|
constructor(element) {
|
|
super(element);
|
|
this
|
|
.easing('cubic-bezier(0.1, 0.7, 0.1, 1)')
|
|
.duration(400)
|
|
.from('translateY', '100%')
|
|
.to('translateY', '0%');
|
|
}
|
|
}
|
|
|
|
Animation.register('slide-in', SlideIn);
|