@insite/smart-header

0.0.1 • Public • Published

@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
});

Readme

Keywords

none

Package Sidebar

Install

npm i @insite/smart-header

Weekly Downloads

2

Version

0.0.1

License

ISC

Unpacked Size

2.08 kB

Total Files

4

Last publish

Collaborators

  • yoinsite
  • prudloff
  • d4vm