headerish
v1.0.5
Published
Configurable Sticky Header written in Vanilla J
Downloads
16
Readme
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);