0.0.6 • Published 9 years ago

class-transition v0.0.6

Weekly downloads
18
License
-
Repository
-
Last release
9 years ago

class-transition

Applies a transitive className that gets removed upon a CSS transition completing or a timeout executing as a fallback.

Example

var transition = require('class-transition');
var el = document.getElementById('subject');
transition(el, 'highlight', '500ms');

API

transition(class, time)

Applies the given class. time is passed to the ms component, so it can be 500 or '500ms' or '0.5s'.

Note: if only support for browsers with CSS transitions is needed, the time parameter can be omitted.

License

MIT

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

11 years ago