Usage To start it, the run method must be called! Scroll.add(selector, className or custom function).run(); Template Scroll.add('.item1', 'active') .add('.item2', function () { alert('Hello World!') }) .add('.item3', () => counterStart()) .run();