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

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