react-animations
react-animations copied to clipboard
Animation not repeat when prop changed
after first fire, animation not repeat when prop changed. how can i do that?
I'm also having the same issue. My animation can slide in but then doesn't slide out again.
@thehatami what i did is when the props has been changed, i userequestAnimationFrame
like this
onAnimateClick = val => {
this.setState({ currentSelectedAnimate: 'None' }, () => {
requestAnimationFrame(() =>
this.setState({ currentSelectedAnimate: val })
);
});
};
I hope it helps.
Please post context please @jaotors
Me too please fix it