scrollstuff
Simple jQuery “stuff is scrolled into view so let's add a class” plugin
Usage:
Basic
scrollstuff Extends the jQuery Object with a new method, so the easiest usage is like this:
$('your-selector-here').scrollstuff({});
Advanced
You van also run scrollstuff with arguments
$('your-selector-here').scrollstuff({ classname: 'custom-class-name', delay: 700, repeat: true });
The scrollstuff object current accepts the following arguments in object notation:
- classname (string) — name of the class to attach to object.
'this--nowinview'
by default. - delay int — delay until class is added, in milliseconds
- repeat boolean whether or not the animation repeats when it's out and in of view again