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

Start playback animation at specific frame #190

Open
annarack opened this issue Jul 17, 2023 · 1 comment
Open

Start playback animation at specific frame #190

annarack opened this issue Jul 17, 2023 · 1 comment

Comments

@annarack
Copy link

Hey!

Currently it's only possible to play/pause/stop an animation. As far as I can see it's not possible get the current frame or to jump to a specific frame or?

@zplata
Copy link
Contributor

zplata commented Jul 19, 2023

Hello 👋 ! If you're just playing a singular animation via the animations property, you should be able to use scrub(animationName: String, value: Number) on the rive object returned from useRive() to scrub (in seconds) to the timestamp you need. This isn't possible on a state machine yet, to be able to scrub to a certain frame/time in a given state.

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

2 participants