@insite/smart-header
v0.0.1
Published
Smart header
Downloads
16
Readme
@insite/SmartHeader.js
Header qui réagit à la position et au sens du scroll
Installation
- Via npm :
yarn add @insite/smart-header
- @param {HTMLElement} header
- @param {Object} options
- bodyScrolledClass: false
- distance: false
Usage :
new SmartHeader(document.querySelector('.page__header'), {
bodyScrolledClass: 'scrolled',
distance: document.querySelector('.page__header').offsetHeight
});