We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 888573a commit ed57daeCopy full SHA for ed57dae
1 file changed
lib/keyframes.js
@@ -74,11 +74,12 @@ export default class Keyframes extends React.Component {
74
requestNextFrame () {
75
this.waitForDelay(() => {
76
const frameNum = this.state.frameNum + 1;
77
+ const loopNum = this.state.loopNum + 1;
78
if (this.props.children.length <= frameNum) {
- if (this.props.loop === true || this.props.loop === 'infinite' || this.state.loopNum < this.props.loop) {
79
+ if (this.props.loop === true || this.props.loop === 'infinite' || loopNum < this.props.loop) {
80
this.setState({
81
frameNum: 0,
- loopNum: this.state.loopNum + 1
82
+ loopNum
83
});
84
this.requestNextFrame();
85
return;
0 commit comments