Author: | imthenachoman |
---|---|
Official Page: | Go to website |
Publish Date: | July 15, 2015 |
License: | MIT |
Description:
nAnimation doesn’t really do any kind of animation; it lets you run a function an X # of times for a Yduration using an optional easing function. The function is called on each frame and can do whatever you need/want. At each frame/call the function is passed one paramater: a rate
. The rate
is a number between 0
and 1
and represents the % complete
for each frame/call. (However, it is possible that some of the easing functions will result in a number larger then 1 during the duration.) The rate will always be 0
at the first frame/call and 1 at the last frame/call.