mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
builtin animations
This commit is contained in:
16
ionic/animations/builtins.js
Normal file
16
ionic/animations/builtins.js
Normal file
@ -0,0 +1,16 @@
|
||||
|
||||
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);
|
Reference in New Issue
Block a user