I'm running an animation on a main timeline. It consists of many individual runners.
I need to be able to display a progress scrubber, and I'd ideally like to drive this from the animation event handler. However, the timeline doesn't seem to have the concept of progress at anything lower than the runner level. I tried using tl.on('time'...)
, but it is only triggered when transitioning between runners.
I could set up something to poll the timeline every so many ms and ask for the time(), but that seems kind of hacky.
Am I missing an obvious way of getting a smooth notification of progress as a timeline runs?
Cheers
Dave