Trender
WIP
Batch css transition end events.
Installation
npm install trender
Usage
Add transition properties to your element(s) and provide a class selector under which your transition will run.
trender
expects a DOM node and an options object
;
trender supports modern browsers. If you need to support animations for legacy browsers and run an operation upon their completion, a library such as jQuery is your best bet. Using a library such as Modernizr for feature detection will help you to make decisions as to which method is preferred.
if Modernizrcsstransition ; else ;
Options
className
: String to add/remove class from elementcallback
: Function callback that will execute when all transitions have resolved.stepper
: Function callback that will execute per transition end