Skip to content

v2.0.0

Choose a tag to compare

@Charmingdc Charmingdc released this 02 May 14:42
· 25 commits to main since this release

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.

Check out the CHANGELOG.md for more details on past updates and improvements! πŸ“œ