builtin animations

This commit is contained in:
Adam Bradley
2015-05-29 16:20:33 -05:00
parent 42bcdafac8
commit 0db02f0633
4 changed files with 38 additions and 11 deletions

View File

@@ -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();
}
}