Set of some useful Javascript (jQuery) utilities.
The simplest ways to download and install this utilities.
###Step 1: Install
$ npm i kovarp-utilities
$ git clone https://github.com/kovarp/utilities
Download this plugin direct in latest version from GitHub repository.
###Step 2: Add to page
<script src="jquery.min.js"></script>
<script src="scrolling.min.js"></script>
- Scroll to target element
- Scroll to target on click
- Resolve window scroll position after page load
- Adds new events for elements intersection
- Events:
intersection.in
andintersection.out
- For better browsers compatibility use in your project intersection-observer.js (https://github.com/w3c/IntersectionObserver)
- Contains pseudo selector
- Method to get dimensions of hidden element