react-anime icon indicating copy to clipboard operation
react-anime copied to clipboard

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

Open harryluo91 opened this issue 6 years ago • 3 comments

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?

harryluo91 avatar Nov 02 '18 20:11 harryluo91

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

kidandcat avatar Dec 05 '18 11:12 kidandcat

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

WilliamIPark avatar Dec 13 '18 23:12 WilliamIPark

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

liamclarkedev avatar Dec 27 '19 22:12 liamclarkedev