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

Animation not repeat when prop changed

Open thehatami opened this issue 6 years ago • 4 comments

after first fire, animation not repeat when prop changed. how can i do that?

thehatami avatar Apr 01 '18 13:04 thehatami

I'm also having the same issue. My animation can slide in but then doesn't slide out again.

barrymichaeldoyle avatar May 18 '18 10:05 barrymichaeldoyle

@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.

jaotors avatar Nov 07 '18 08:11 jaotors

Please post context please @jaotors

chiumax avatar Nov 11 '18 07:11 chiumax

Me too please fix it

nsoufian avatar Jan 06 '19 19:01 nsoufian