classes-component

Cross-browser element class list

classes

Cross-browser element class manipulation, utilizing the native .classList when possible.

$ component install component/classes
var classes = require('classes');
classes(el).add('foo').toggle('bar');

Add class.

Remove class.

Toggle class.

Check if class is present.

Return an array of classes.

MIT