This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
desandro-classie with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Ripped from bonzo :heart: @ded
classie.has( element, 'my-class' ) // returns true/false classie.add( element, 'my-new-class' ) // add new class classie.remove( element, 'my-unwanted-class' ) // remove class classie.toggle( element, 'my-class' ) // toggle class
Install with Bower :bird:
bower install classie
Install with npm
npm install desandro-classie
Install with Component
component install desandro/classie
classie is released under the MIT license.