Skip to content
This repository has been archived by the owner on Mar 21, 2018. It is now read-only.
/ classie Public archive

🎩 class helper functions

Notifications You must be signed in to change notification settings

desandro/classie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

classie - class helper functions

Ripped from bonzo ❤️ @ded

No longer supported

Use classie only if you need to support older browsers that do not support classList. classList is supported in IE10+, Android 3+, iOS Safari 5.1+, and modern evergreen browsers. Can I use classList?

classie is longer supported. v1.0.1 is the final version.

Usage

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

Package management

Install with Bower 🐦 bower install classie

Install with npm npm install desandro-classie

Install with Component component install desandro/classie

MIT license

classie is released under the MIT license.