A fast, lightweight tweening library for Lua, enabling smooth animations and transitions for game objects and UI elements.
Flux is a tweening library for Lua that animates numerical values in tables over time, creating smooth transitions for properties like position, scale, or color. It solves the problem of manually interpolating values frame-by-frame, providing an easy way to add animations to games and applications.
Lua developers, particularly those working on games or interactive applications in engines like LÖVE, who need lightweight and efficient animation tools.
Developers choose Flux for its speed, minimal footprint, and straightforward API that handles complex tweening scenarios—like chaining and grouping—without bloating their projects.
A fast, lightweight tweening library for Lua
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Designed for performance with minimal overhead, as highlighted in its philosophy and single-file installation, making it ideal for resource-constrained Lua projects.
Starting tweens is intuitive with flux.to(), and chaining methods like :ease() and :after() allows easy customization without complex setup.
Tween groups enable independent control, such as pausing game-world animations by skipping update() calls, a feature explicitly mentioned in the README for game state management.
Supports a wide range of easing functions from linear to elastic, providing diverse motion curves without additional coding, as listed in the README.
Can only animate numerical values in tables, so tweening colors, strings, or complex objects requires manual conversion, adding extra development work.
Requires explicit flux.update(deltatime) calls each frame, which can be error-prone if forgotten or mismatched with game loops, leading to broken animations.
As a code-only library, it offers no built-in debugging or visualization, making animation prototyping and troubleshooting more cumbersome compared to engine-integrated solutions.