Skip to content

Commit

Permalink
Add iterationDelay to componentWillReceiveProps (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
IceInBeard authored and oblador committed Mar 19, 2019
1 parent 8544713 commit 5428a58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion createAnimatableComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ export default function createAnimatableComponent(WrappedComponent) {
delay,
duration,
easing,
iterationDelay,
transition,
onAnimationBegin,
} = props;
Expand All @@ -338,7 +339,7 @@ export default function createAnimatableComponent(WrappedComponent) {
this.setAnimation(animation);
} else {
onAnimationBegin();
this.animate(animation, duration).then(endState =>
this.animate(animation, duration, iterationDelay).then(endState =>
this.props.onAnimationEnd(endState),
);
}
Expand Down

0 comments on commit 5428a58

Please sign in to comment.