#245 · Primary category: Video & Animation

TweenJS

A simple but powerful tweening / animation library for Javascript. Part of the CreateJS suite of libraries.

Project last updated:12/18/23

GitHub Stars

3.5K

Forks

939

Contributors

16

License

MIT

Why we included this project

TweenJS offers a compact, predictable way to animate JavaScript objects and CSS styles without dragging in a full animation engine. The chained API reads like a timeline script: set a property over a duration, wait, change another property, call a function. It sits alongside the CreateJS suite but carries no hard dependency, so it can drive plain numeric properties in nearly any JavaScript project. One design choice stands out: steps are deterministic, meaning you can set a tween's position arbitrarily and it will always render the same state, which makes scrubbing and syncing animations to external state straightforward. Actions like function calls and pauses run in order but not at exact moments, so the model is worth understanding when you care about timing-sensitive UI motion.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category