class-transition
Applies a transitive className
that gets removed upon a CSS
transition completing or a timeout executing as a fallback.
Example
var transition = ;var el = document;;
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