-
-
Notifications
You must be signed in to change notification settings - Fork 19
Lottie
Michael edited this page Mar 15, 2017
·
10 revisions
(Android only at the moment)
Name | Parameter | Info |
---|---|---|
start() | Starts an animation from the beginning | |
pause() | Pause an animation | |
resume() | Resumes an animation from the current point | |
stop() | Stops an animation an resets it | |
addEventListener(String event, Callback function) | Event name as string Callback function |
Adds events to the animation view |
setFile(String path) | File path as string | Sets the current animation |
Name | Parameter | Info |
---|---|---|
progress | float | Get/set the current progress (in percentage) |
loop | boolean | Get/set if the animation should loop |
speed | float | Get/set the speed of the animation |
duration | float | Get/set the duration of the animation |
isPlaying | boolean | Get the animation status |
Name | Info |
---|---|
complete | When the animation is done |
update | Fires during the animation |