A lightweight ES6 tweening engine for animating numbers, arrays, objects, and colors with easing and looping.
Between.js is a lightweight JavaScript tweening engine that interpolates values between a start and end point over a specified duration. It enables smooth animations for numbers, arrays, objects, and colors, solving the need for a performant and modern animation library in web projects.
Frontend developers and web animators who need a simple, efficient tweening library for creating custom animations without heavy dependencies.
Developers choose Between.js for its minimal footprint (3KB gzip), ES6-native API, and flexibility in animating diverse data types with built-in easing and looping controls.
Lightweight JavaScript (ES6) tweening engine
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
At only 9.08 KB (3 KB gzip), it uses optimization patterns for smooth animations, reducing load times and improving performance in web projects.
Written in ES6 and compiled for broad browser support, it offers a clean, intuitive syntax that integrates seamlessly with modern JavaScript tooling and workflows.
Supports numbers, arrays, objects, and colors (HEX, HSL, RGB, named), enabling diverse animation scenarios like data visualizations and UI effects without extra code.
Provides update, start, pause, play, and complete event callbacks, allowing precise animation management and integration with other application logic.
Lacks native support for chaining or sequencing animations, requiring manual event handling or external code for complex animation flows, which can be cumbersome.
Color animations require a separate plugin (dom-color.between.js), adding setup complexity and potential versioning issues compared to libraries with built-in color support.
Has fewer community plugins, tutorials, and resources compared to alternatives like GreenSock (GSAP), which can hinder adoption and troubleshooting for advanced use cases.