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

scrollTrigger.js is a lightweight jQuery plugin that detects when elements become visible in viewport so you can create scrolling effects on them.

scrolling scrolling-effect

Documentation

scrollTrigger.js

jQuery plugin to activate/deactivate elements as you scroll up/down the page.

Installation

  • Include jQuery then scrollTrigger.js on your page.

Usage

// Default $('.my-elements').scrollTrigger();
// Offset from top of element $('.my-elements').scrollTrigger({   offset: 100 });
// Target another element to activate/deactivate $('.my-elements').scrollTrigger({   target: '.another-element' });
// Customize the class name applied to activated elements $('.my-elements').scrollTrigger({   active: 'foo' });

You May Also Like