4 ms·
Does one of these tools support an animation timeline with arbitrary seeking? Essentially I want to be able to have a progress slider representing the current t
by Timon3 3y ago
Does one of these tools support an animation timeline with arbitrary seeking? Essentially I want to be able to have a progress slider representing the current time, and if the user clicks on any time on the slider, all animations should spring to that state, like a YouTube video. I played around with GSAP, anime and some others, but none properly supported playing the animations "backwards" (while jumping back).
I wrote my own implementation of a declarative animation engine (i.e. the same timeline position always looks the same), but I'm pretty sure there are still a couple of bugs allowing you to go out of sync.
- Epskampie 3y agoI'd think GSAP timeline is exactly made for that, but you say you've already tried that? https://greensock.com/docs/v3/GSAP/Timeline https://greensock.com/docs/v3/GSAP/Timeline https://greensock.com/docs/v3/GSAP/Timeline/seek https://greensock.com/docs/v3/GSAP/Timeline/seek() https://greensock.com/docs/v3/GSAP/Timeline/reverse https://greensock.com/docs/v3/GSAP/Timeline/reverse()
- Timon3 3y agoI thought I did. Maybe I need to have another look, because the examples do seem to be exactly what I wanted. Thank you for the suggestion!
- nickcoury 3y agoThe native Web Animations API supports this with setting currentTime relative to the total duration.