You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It will be useful to add pause and rewind operations. Right now the only method available is ‘play’. I Sn trying to use the lib for song lyrics animation
Thanks for the pointers. Is Motion One open source ? I liked popmotion because it's Typescript based. I only see Javascript files in Motion One github. Are those transpiled files ?
Also, on playbackRate. - Looking for similar but not same capability. I am look for 'seek' to a specific point in timeline (from start). For song lyicrs animation, when the music is 'seeked', the lyrices animation has to be seeked as well. Or how I achieve this with 'playrate'
I am look for 'seek' to a specific point in timeline (from start).
Okay, in that case you might want to try animejs as it does have a built in seek. It's open source and while not TS, types are available.
I thought more about how to pull off the same with Popmotion and it'd probably be not through driver but instead the Iterators. You'd have to implement a timeline and animation loop yourself. Having said that, I recall version 8 of Popmotion has timeline and supports seek. So that's another option.
Activity
stokesman commentedon Apr 11, 2023
You may want to look at using Motion One that has
playbackRate
. It's the latest animation library from the same author.If for some reason you want to stick with popmotion you might be able to add pause/rewind through a custom
Driver
.mediabuff commentedon Apr 11, 2023
Thanks for the pointers. Is Motion One open source ? I liked popmotion because it's Typescript based. I only see Javascript files in Motion One github. Are those transpiled files ?
mediabuff commentedon Apr 11, 2023
Also, on playbackRate. - Looking for similar but not same capability. I am look for 'seek' to a specific point in timeline (from start). For song lyicrs animation, when the music is 'seeked', the lyrices animation has to be seeked as well. Or how I achieve this with 'playrate'
mediabuff commentedon Apr 11, 2023
Also, on a custom Driver., it seems to provide for 'delta'time. How to go back in absolute time ?
mattgperry commentedon Apr 11, 2023
Motion One is fully in Typescript, not sure where you’d find JS files. But it wouldn’t be able to support driver as it’s based on WAAPI
mediabuff commentedon Apr 11, 2023
@mattgperry thanks for the clarification. Could you please address my other questions - as you are the most qualified to answer them
stokesman commentedon Apr 12, 2023
Okay, in that case you might want to try animejs as it does have a built in
seek
. It's open source and while not TS, types are available.I thought more about how to pull off the same with Popmotion and it'd probably be not through
driver
but instead theIterators
. You'd have to implement a timeline and animation loop yourself. Having said that, I recall version 8 of Popmotion hastimeline
and supportsseek
. So that's another option.