Juicy Animation Engine
Hey guys, I'm posting a small animation engine that I'm using for puzzle games and such. It's only about 500 tokens even in its non-minified state, and can be less.
At its core, it is a system that allows an object to self-modify its properties (such as its screen coordinates) over time, subject to an easing function. This allows the creation of really nice looking animations with a minimum of code.
Features
- Dead simple to use, 'fire and forget' method.
- Controls for how many times to repeat the animation, reversing after it's done, etc.
- Choose and select only the easing functions you need to save code