simple-scroll-toggle-class
v1.0.2
Published
Simple Scroll Toggle Class Vanilla JS Library
Downloads
5
Readme
Simple Scroll Toggle Class
Installation
<script src="./path/to/simpleScrollToggleClass.min.js"></script>
Usage
var example = new simpleScrollToggleClass.init({
className: 'fix',
element: '#header',
elementList: ['.title_header', '.label_header'],
eventPosition: "top",
duration: 0,
});
Develop
git clone https://github.com/dn16/simple-scroll-toggle-class simpleScrollToggleClass/
cd simpleScrollToggleClass
rm -rf .git
npm install
Script usage
| Command | Description |
|----------------|---------------------------------------------------------------|
| build | build the project in ~/dist
directory |
| format | Run Prettier |