Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pause and rewind capability #957

Open
mediabuff opened this issue Apr 6, 2023 · 7 comments
Open

Pause and rewind capability #957

mediabuff opened this issue Apr 6, 2023 · 7 comments

Comments

@mediabuff
Copy link

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

@stokesman
Copy link
Contributor

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

Also, on a custom Driver., it seems to provide for 'delta'time. How to go back in absolute time ?

@mattgperry
Copy link
Collaborator

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
Copy link
Author

@mattgperry thanks for the clarification. Could you please address my other questions - as you are the most qualified to answer them

  1. is Motion One open source ?
  2. in Popmotion, as @stokesman was pointing out, please provide some guidance on how I could use driver to 'seek'
  3. or in Motion One, using playbackRate, how would I do the same

@stokesman
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants