🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

scrollStuff is a small and easy jQuery plugin that applies your own CSS classes to elements whenever they will be visible in the screen.

Viewport scroll-animation

Documentation

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

That's it! Have fun and enjoy the ride and all that good stuff!


You May Also Like