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

Is there a way to trigger the animation manually while autoplay is false? #50

Open
harryluo91 opened this issue Nov 2, 2018 · 3 comments

Comments

@harryluo91
Copy link

Hi, I've been trying to find a way to trigger the animation manually based on some conditions, but it looks like the only way to get a reference to the animation instance is through one of the begin, update or complete callback functions, and they all require the autoplay prop to be true to trigger. Is there any way that we can get the animation instance when the component mount?

@kidandcat
Copy link

dude, you are using react, change autoplay={true|false} whenever you need it

@WilliamIPark
Copy link

WilliamIPark commented Dec 13, 2018

To be fair that's a pretty poorly named prop if the intended method to play an animation is through it.

@liamclarkedev
Copy link

Changing autoplay to true|false does not work as intended for me. Changing this, removes all children on the Anime component

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

4 participants