We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am having an issue when the props.children change for an <Anime>.
<Anime>
To solve my issue, I made this change to function componentWillReceiveProps in react-anime.js file:
function componentWillReceiveProps
this.children = { /* cur: children.filter(function (c) { return difChildren.indexOf(c) < 0; }), */ cur: children, prev: childrenWereRemoved ? difChildren : this.children.prev, next: !childrenWereRemoved ? difChildren : this.children.next };
For some reason, the filter was returning zero children, even though there was a child component.
I am using anime like this;
//inside parent component <FadeIn>{messageWords}</FadeIn> let FadeIn = props => { return ( <Anime easing="linear" autoplay={true} duration={500} direction="normal" loop={false} opacity={[0, 1]} delay={(el, index) => ((index * 200) + 1500)}> {props.children} </Anime> ) }
The text was updated successfully, but these errors were encountered:
+1 on this -- discovered this while playing with react-anime today.
Thanks @ruizj-ibm for the fix, it seems to have solved my issue!
Sorry, something went wrong.
+1 the same problem
No branches or pull requests
I am having an issue when the props.children change for an
<Anime>
.To solve my issue, I made this change to
function componentWillReceiveProps
in react-anime.js file:For some reason, the filter was returning zero children, even though there was a child component.
I am using anime like this;
The text was updated successfully, but these errors were encountered: