Skip to content

Commit c6b3ddd

Browse files
committed
Add onAnimationFinish example
1 parent 7608fff commit c6b3ddd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/stories/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ import { storiesOf } from '@storybook/react';
66
// Gift animation by Jan Semler https://www.lottiefiles.com/u/141
77
storiesOf('Lottie', module)
88
.add('basic', () => <Animation source={require('./assets/gift.json')} autoPlay />)
9-
.add('loop', () => <Animation source={require('./assets/gift.json')} loop autoPlay />);
9+
.add('loop', () => <Animation source={require('./assets/gift.json')} loop autoPlay />)
10+
.add('onAnimationFinish', () => <Animation source={require('./assets/gift.json')} autoPlay onAnimationFinish={() => alert('Finished!')}/>);

0 commit comments

Comments
 (0)