Repository navigation
v2.0.0
v2.0.0 - Inbuilt CSS Support Added π
Released on: May 02, 2025
What's New? β¨
-
Inbuilt CSS Support:
We've added native CSS styles to enhance the user experience and make the animations smoother. Now, you can use ScrollJs without relying on external CSS files. Simply import the library and also the css file, and it will automatically apply the necessary styles. -
New CSS Classes:
To control the visibility and animation, the following new classes have been introduced:scrolljs-hidden-{direction}scrolljs-opacity-0
These classes handle animations like fade and direction-based sliding (up, down, left, right, zoom).
Backward Compatibility π:
- External CSS Support:
External CSS is still supported, allowing you to continue using your existing custom styles if you prefer. The inbuilt CSS is just an added option for ease of use.
Documentation Updates π:
- Updated the documentation to reflect changes in CSS handling and how to use the new inbuilt CSS system.
- Added new examples and use cases for the direction-based animations and fades.