feat(ripple): better ripple

This commit is contained in:
Max Lynch
2015-09-25 11:18:16 -05:00
parent 7601c9fd2b
commit 60f4d65e63
2 changed files with 57 additions and 4 deletions

View File

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