1.1.0 • Published 5 years ago
saytum-element-scroll-hide v1.1.0
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,
});