mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
builtin animations
This commit is contained in:
@@ -155,16 +155,8 @@ class ModalContainer {
|
||||
constructor(elementRef: ElementRef) {
|
||||
this.domElement = elementRef.domElement;
|
||||
|
||||
this.animation = new Animation(this.domElement);
|
||||
console.log('Animation', this.domElement);
|
||||
var slideIn = new Animation(this.domElement);
|
||||
|
||||
slideIn
|
||||
.easing('cubic-bezier(0.1, 0.7, 0.1, 1)')
|
||||
.duration(400)
|
||||
.from('translateY', '100%')
|
||||
.to('translateY', '0%')
|
||||
.play();
|
||||
var animation = Animation.create(this.domElement, 'slide-in');
|
||||
animation.play();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user