classie

:tophat: class helper functions

  • Owner: desandro/classie
  • Platform:
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

classie - class helper functions

Ripped from bonzo :heart: @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 :bird: 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.

Main metrics

Overview
Name With Ownerdesandro/classie
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 1)
Platform
License:
所有者活动
Created At2013-01-24 19:32:06
Pushed At2016-05-11 21:26:46
Last Commit At2016-04-12 09:57:23
Release Count6
Last Release Namev1.0.1 (Posted on 2014-04-14 22:20:21)
First Release Namev0.0.1 (Posted on 2013-01-24 14:30:48)
用户参与
Stargazers Count864
Watchers Count33
Fork Count181
Commits Count25
Has Issues Enabled
Issues Count12
Issue Open Count0
Pull Requests Count6
Pull Requests Open Count0
Pull Requests Close Count8
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private