JavaScript library To Execute Functions On Scroll – scrollEvents

Category: Javascript , Recommended | August 3, 2018
Author: ryanpcmcquen
Views Total: 1,625
Official Page: Go to website
Last Update: August 3, 2018
License: MIT

Preview:

JavaScript library To Execute Functions On Scroll – scrollEvents

Description:

scrollEvents is a JavaScript library that detects the scroll events and allows you to do something on page vertical scrolling.

How to use it:

Download and include the JavaScript file scrollEvents.js on the web page.

<script src="scrollEvents.js"></script>

The JavaScript library currently provides four methods to help you do some cool stuffs on page scroll:

  • changeClass: Changes element class.
  • changeHTML: Changes element html content.
  • changeStyle: Changes element.style.property value.
  • changeText: Changes element.textContent.
scrollEvents.changeStyle(".el", "height", "25%", "75%");
scrollEvents.changeText(".el", "TEXT 1", "TEXT 2");
scrollEvents.changeHTML('HTML 1', 'HTML2');

Changelog:

v1.1.4 (08/03/2018)

  • Update

You Might Be Interested In:


Leave a Reply