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

Play on click #28

Open
catkeck opened this issue May 7, 2021 · 3 comments
Open

Play on click #28

catkeck opened this issue May 7, 2021 · 3 comments

Comments

@catkeck
Copy link

catkeck commented May 7, 2021

Hi! Is there a way to make it so the animation plays all the way through (once) when clicked on? (as well as on in initial load)

@michaelpersson-ux
Copy link

As long as play remains true, I think you can just bind a button to set the goto prop in the player to the first frame.

@catkeck
Copy link
Author

catkeck commented May 7, 2021

Wouldn't that result in the animation repeating though? and just resetting?

@michaelpersson-ux
Copy link

Maybe I misunderstood your question. Binding a click to goto=1 will restart the animation and play it through once. Is your problem that you have loop turned on?

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