kovarp-utilities
v1.0.5
Published
Set of some useful Javascript utilities
Downloads
4
Maintainers
Readme
Hellofront utilities
Set of some useful Javascript (jQuery) utilities.
Installing
The simplest ways to download and install this utilities.
###Step 1: Install
Via npm
$ npm i kovarp-utilities
Clone repository
$ git clone https://github.com/kovarp/utilities
Direct download
Download this plugin direct in latest version from GitHub repository.
###Step 2: Add to page
Link plugin script file after jQuery
<script src="jquery.min.js"></script>
<script src="scrolling.min.js"></script>
Scrolling
- Scroll to target element
- Scroll to target on click
- Resolve window scroll position after page load
Intersection
- 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)
Selectors
- Contains pseudo selector
Properties
- Method to get dimensions of hidden element