Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.
/ onscrollclass.js Public archive

Adds a class to elements when scrolled into view

License

Notifications You must be signed in to change notification settings

tu4mo/onscrollclass.js

Repository files navigation

OnScrollClass.js

Adds a class to elements when scrolled into view.

Usage

Just include onscrollclass.min.js in your page:

<script src="onscrollclass.min.js"></script>

Define a class that gets assigned for elements that are scrolled into view using data-onscrollclass:

<div class="foo" data-onscrollclass="bar"></div>

Now, add transitions, animations, etc. in your CSS class .bar.

About

Adds a class to elements when scrolled into view

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published