/onscroll-effect

A tiny JavaScript library to enable CSS animations when user scrolls.

Primary LanguageJavaScriptMIT LicenseMIT

onScroll Effect

A tiny JavaScript library to enable CSS animations when user scrolls.

This library toggles a class to an element when it appears on viewport when user scrolls. It lets you build CSS transitions or animations launched only when user scrolls on it. Only set a few HTML attributes, and code the rest with your CSS skills.

Note that in order to not be JavaScript dependant, this library add the class when the element is outside of the viewport. This way, if you have a JS error, it's the default state that will appears on scroll.

npm version dependencies Status devDependencies Status GitHub license

Quick start

Several quick start options are available:

Documentation

onScroll Effect's full documentation is hosted on GitHub Pages at twikito.github.io/onscroll-effect/.

Contribution

License

MIT. Copyright (c) Matthieu Bué