1.0.0 • Published 3 years ago

addactiveclass v1.0.0

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

What is this?

Installation

npm i addactiveclass

then...

How to uses it

addactiveclass({
    arrayClass: 'navButtons' // the common class of all buttons,
    activeClass: 'active' // the class name to add to the selected
    index: 2 // the selected button hover or clicked
})