mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
collide updates
This commit is contained in:
@ -1,14 +1,12 @@
|
||||
import {Collide} from './collide'
|
||||
import {animationStart} from './animation-start'
|
||||
import {animationStop} from './animation-stop'
|
||||
import {animationPercent} from './animation-percent'
|
||||
import {startTick} from './tick'
|
||||
|
||||
|
||||
export class Animation {
|
||||
constructor() {
|
||||
this._elements = null;
|
||||
|
||||
this._options = {};
|
||||
this._properties = {};
|
||||
}
|
||||
@ -35,13 +33,12 @@ export class Animation {
|
||||
}
|
||||
|
||||
stop() {
|
||||
let promise = animationStop(this._elements, this._options, this._properties);
|
||||
|
||||
return promise;
|
||||
animationStop(this._elements, this._options, this._properties);
|
||||
}
|
||||
|
||||
percent(ratio) {
|
||||
animationPercent(ratio, this._elements, this._options, this._properties);
|
||||
this._options.percentComplete = parseFloat(ratio);
|
||||
animationStart(this._elements, this._options, this._properties);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user