Skip to content

Commit 5a6f153

Browse files
author
Pavel Zarecky
committed
Fixed when animating prop initially false
1 parent e3c83e8 commit 5a6f153

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/AnimationContainer.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ export default class AnimationContainer<
5555
}
5656

5757
componentDidMount() {
58-
this.startAnimation()
58+
if (this.props.animating) {
59+
this.startAnimation()
60+
}
5961
}
6062

6163
componentDidUpdate(prevProps: Props<T>) {

0 commit comments

Comments
 (0)