react-css-animation-group
v2.4.0
Published
Use CSS Animations when a React component enters or leaves the DOM.
Downloads
49
Maintainers
Readme
react-css-animation-group
Use CSS Animations when a React component enters or leaves the DOM.
Based on react-transition-group.
Usage
Example
<CSSAnimationGroup
enterAnimation="bounceIn"
enterDuration="200ms"
enterTimingFunction="ease"
exitAnimation="fadeOut"
exitDuration="150ms"
exitTimingFunction="linear"
>
{children}
</CSSAnimationGroup>Properties
enterAnimationenter animation nameenterDelayenter animation delayenterDirectionenter animation directionenterDurationenter animation durationenterFillModeenter animation fill modeenterIterationCountenter animation iteration countenterTimingFunctionenter animation timing functionexitAnimationleave animation nameexitDelayleave animation delayexitDirectionleave animation directionexitDurationleave animation durationexitFillModeleave animation fill modeexitIterationCountleave animation iteration countexitTimingFunctionleave animation timing function
Any additional properties will be passed down to TransitionGroup.
Browser support
Works on browsers with CSS Animation support, otherwise will gracefully degrade.
