Dynamic Animation Length
I’m building a countdown timer animation in Rive. On the frontend I have a variable for “minutes left,” and I want to pass that into the Rive file so the ring animates along with the countdown.
What I’ve tried so far:
Data binding a minutes left variable: I tried sending the minutes left into a blend state, but since the total length is variable, I couldn’t map it properly since the blend state expects a fixed range.
Using % complete: I switched to calculating a percent complete and feeding that into a number input driving a blend state. This works in principle, but because the value only updates once per minute it looks choppy instead of smooth and the ring just jumps a little bit every time it updates.
Multiple timelines: I considered making separate animations (10 min, 30 min, 1 hour, etc.), but that doesn’t work since progress resets if the animation is reloaded.
Any other ideas or suggestions?