mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
nav updates
This commit is contained in:
31
ionic/animations/ios-transition.js
Normal file
31
ionic/animations/ios-transition.js
Normal file
@ -0,0 +1,31 @@
|
||||
import {Animation} from '../collide/animation';
|
||||
import {addEasing} from '../collide/easing';
|
||||
|
||||
|
||||
const easing = [.36, .66, .04, 1];
|
||||
const duration = 500;
|
||||
|
||||
|
||||
class IOSTransition extends Animation {
|
||||
|
||||
constructor(navCtrl) {
|
||||
|
||||
this.duration(duration);
|
||||
|
||||
addEasing('ios', easing);
|
||||
this.easing('ios');
|
||||
|
||||
|
||||
var enteringViewEle = navCtrl.enteringEle();
|
||||
|
||||
|
||||
var viewA = new Animation();
|
||||
viewA.elements( document.querySelectorAll('.square') )
|
||||
.to('translateX', translateX)
|
||||
|
||||
this.addChild(row1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user