Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Animation not repeat when prop changed #26

Open
thehatami opened this issue Apr 1, 2018 · 4 comments
Open

Animation not repeat when prop changed #26

thehatami opened this issue Apr 1, 2018 · 4 comments

Comments

@thehatami
Copy link

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

@barrymichaeldoyle
Copy link

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

@jaotors
Copy link

jaotors commented Nov 7, 2018

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

@chiumax
Copy link

chiumax commented Nov 11, 2018

Please post context please @jaotors

@nsoufian
Copy link

nsoufian commented Jan 6, 2019

Me too please fix it

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants