timeline-events
Advanced tools
Comparing version 1.2.4 to 1.2.5
{ | ||
"name": "timeline-events", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"description": "", | ||
@@ -22,3 +22,5 @@ "main": "dist/index.umd.js", | ||
"typescript", | ||
"timer" | ||
"timer", | ||
"schedule", | ||
"intervals" | ||
], | ||
@@ -25,0 +27,0 @@ "author": "Jurian Koning", |
# Timeline events | ||
A package for firing events at custom points on a virtual timeline. | ||
A package for firing events at custom intervals on a virtual timeline. | ||
@@ -64,7 +64,7 @@ ### [Demo](https://codepen.io/djurdjen/pen/bGNBmrQ) | ||
| `.play(<customProgress:number>)` | Plays timeline. Start from 0 everytime when clicked<br>You can add custom progress number (in seconds) as an argument. This will skip the entries that have passed the progress | | ||
| `.stop(function({args}))` | Stops timeline | | ||
| `.pause(function({args}))` | Pauses timeline | | ||
| `.stop(<function({args})>)` | Stops timeline | | ||
| `.pause(<function({args})>)` | Pauses timeline | | ||
| `.continue()` | Continues timeline when in a paused state | | ||
| `.finished()` | Callback for when timeline has finished | | ||
| `.onUpdate(function({args}))` | Callback for every interval (every 0.01s) | | ||
| `.onUpdate(<function({args})>)` | Callback for every interval (every 0.01s) | | ||
@@ -71,0 +71,0 @@ <br> |
24790