@wearejust/scroll
v1.0.7
Published
Adds a class when scrolling past selected elements
Downloads
4
Keywords
Readme
Scroll
Installation
npm install @wearejust/scroll --save-dev
Usage
var Scroll = require('@wearejust/scroll');
$(function() {
Scroll.init();
});
With options
var Scroll = require('@wearejust/scroll');
$(function() {
Scroll.init({
active: 'active',
delay: 200,
delayHorizontal: 50,
gap: 0.1,
parseOnInit: true,
priority: 'scroll-priority',
selector: '.scroll'
});
});