Transify
Add enter and leave transitions to DOM Nodes, inspired by ReactCSSTransitionGroup addon.
Usage
const t = const child = documentt //Enter transitionr //Leave Transition
Installation
npm install transify --save
API
transify(element, opts)
element
: container having child nodes to be transitioned.
Valid methods:
append
: appends the node and sets anenter
transition.remove
: removes the node and sets aleave
transition.
Valid options:
transitionName
: Name of the transition on which enter, leave and active states would be based on.tick
: Interval after which to set the active class (default: 7)
Example
To run the example:
npm install
npm run example
License
MIT