Setting timeline duration at runtime
I am using the web/js runtime. I have been using the @rive-app/canvas package. I have a situation where a list of users need to vote on a topic. Beside each user’s name is this timer animation. Depending on what they are voting for, they may have 10 seconds, 15 seconds, 30 seconds, etc to vote. I need to adjust the duration of my animation at runtime. I cannot figure out a means of achieving this.
I was not sure if the state machine can drive a timeline based on a numerical value of 0-1. If it can do this, I think I need some further guidance.
I also looked at adjusting the speed of the animation at runtime, but I do not seem to have a means of doing this in the @rive-app/canvas package.
voting-timer.rev