saytum-element-scroll-hide
v1.1.0
Published
Hiding an item when scrolling down and appearing when scrolling up
Downloads
7
Readme
Saytum element scroll hide
Using
Install the library
$ yarn add saytum-element-scroll-hide
Import the library and create an instance with settings
import ElementScrollHide from 'saytum-element-scroll-hide';
new ElementScrollHide({
indent = 150,
classActive = 'active',
hideElement = 'header', // selector
hideElementDelay = 1000,
throttleDelay = 220,
});