I've been trying to retrieve the current time of a running animation, but I haven't had any luck so far. I can easily grab the start time using:
myelement.addEventListener('webkitAnimationStart', function (evt){
console.log(evt.elapsedTime)
});
And also the end time with:
myelement.addEventListener('webkitAnimationEnd', function (evt){
console.log(evt.elapsedTime)
})
However, I feel like this approach is lacking as these values are readily available in the CSS properties. Any suggestions on how to achieve this more efficiently?