Skip to content

Commit 9615491

Browse files
committed
describe about the loop prop
1 parent eee87c3 commit 9615491

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,12 @@ $ npm install react-keyframes --save
3333
### API
3434

3535
#### Keyframes
36-
**`<Keyframes { component = 'span', delay = 0, onStart, onEnd } />`**
36+
**`<Keyframes { component = 'span', delay = 0, loop = 1, onStart, onEnd } />`**
3737

3838
- Use `import { Keyframes } from 'react-keyframes'` or `require('react-keyframes').Keyframes`.
3939
- The `component` prop specifies what component `Keyframes` renders as.
4040
- The `delay` prop specifies when the animation should start (millisecond).
41+
- The `loop` prop specifies the number of times an animation cycle should be played. Set `true` to repeat forever.
4142
- The `onStart` function is invoked upon animation start
4243
- The `onEnd` function is invoked upon animation end
4344
- Any additional, user-defined properties will become properties of the rendered component.

0 commit comments

Comments
 (0)