1.0.5 • Published 5 years ago

headerish v1.0.5

Weekly downloads
7
License
ISC
Repository
github
Last release
5 years ago

Headerish

Configurable Sticky Header written in Vanilla J

Installation:

npm i headerish

Usage:

const Headerish:any = new Headerish(configuration);

Configuration:

Object with either ID og class for the header DOM element and a class to add when the header is active. Please note that the ID will be selected over the class. E.g:

const:configuration:any = {
  id: "primaryMenu",
  querySelector: "primaryMenuClass",
  activeClass: "menu-active"
}

new Headerish(configuration);
1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago