mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feat(ripple): better ripple
This commit is contained in:
@@ -408,6 +408,21 @@ export class Animation {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current time of the first animation
|
||||
* in the list. To get a specific time of an animation, call
|
||||
* subAnimationInstance.getCurrentTime()
|
||||
*/
|
||||
getCurrentTime() {
|
||||
if(this._chld.length > 0) {
|
||||
return this._chld[0].getCurrentTime();
|
||||
}
|
||||
if(this._ani.length > 0) {
|
||||
return this._ani[0].getCurrentTime();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
progressEnd(shouldComplete, rate=3) {
|
||||
let promises = [];
|
||||
|
||||
@@ -604,6 +619,10 @@ class Animate {
|
||||
}
|
||||
}
|
||||
|
||||
getCurrentTime() {
|
||||
return this.ani.currentTime;
|
||||
}
|
||||
|
||||
playbackRate(value) {
|
||||
this.rate = value;
|
||||
if (this.ani) {
|
||||
|
||||
Reference in New Issue
Block a user