A lightweight vanilla JavaScript library for creating smooth scroll-driven animations.
Lax.js is a lightweight vanilla JavaScript library that creates smooth, scroll‑driven animations on web pages. It allows developers to bind CSS properties (like opacity, translation, rotation) to scroll position, mouse movement, or other custom drivers, enabling rich visual effects without heavy frameworks.
Frontend developers and designers who want to add performant, custom scroll‑based animations to websites or web apps without relying on large animation libraries.
Developers choose Lax.js for its minimal footprint (<4KB), flexibility in defining animation drivers, and fine‑grained control over CSS properties—all while maintaining high performance and compatibility with modern UI frameworks.
Simple & lightweight (<4kb gzipped) vanilla JavaScript library to create smooth & beautiful animations when you scroll.
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 under 4KB gzipped with no dependencies, it minimizes page load impact, ideal for performance-focused sites.
Supports animations driven by scroll, cursor, time, or custom values, enabling diverse interactions beyond basic parallax.
Allows precise tuning of CSS properties via value maps and easing functions, documented with examples for translate, rotate, and opacity.
Includes momentum-based smoothing for natural scroll effects and a preset system for quick starts with common animations.
The README explicitly states the project is no longer updated, risking bugs, compatibility issues, and lack of community support.
Requires explicit calls to add/remove elements in React, Vue, or Angular, adding boilerplate and complexity compared to integrated libraries.
Warns that CSS properties like blur, hue-rotate, and brightness are graphically intensive and may not run smoothly, limiting certain visual effects.