A tiny JavaScript library to enable CSS animations when user scrolls.
A tiny JavaScript library to enable CSS animations when user scrolls.
This library allows you to toggle one or more classes on an element when it appears inside the viewport when the user scrolls the page. It enables you to build CSS transitions or animations launched only when the user scrolls the page to the element. All you have to do is set a few HTML attributes, and code the rest with your CSS skills.
Go check the full documentation.
Several quick start options are available:
npm install onscroll-effect
onScroll Effect’s full documentation is hosted on GitHub Pages at twikito.github.io/onscroll-effect/.
git clone https://github.com/twikito/onscroll-effect.git
npm run build
MIT. Copyright (c) Matthieu Bué