How can I get currentKeyframeTime
& lastKeyframeTime
in any animation using Javascript?
I want to update the currentKeyframeTime
of my animation to some other time because i'm making a tracking bar for animation, similar to a player slider like in youtube so I need the currentKeyframeTime
and lastKeyframeTime
.
I have successfully done this for audio, as it has currentTime
& duration
type properties. What code I should write to get currentKeyframeTime
& lastKeyFrameTime
?
You would keep track of the time elapsed like so: http://plnkr.co/edit/CfOttpMPelxS1iYnnEPW