react-css-animation-group
v2.4.0
Published
Use CSS Animations when a React component enters or leaves the DOM.
Downloads
146
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
enterAnimation
enter animation nameenterDelay
enter animation delayenterDirection
enter animation directionenterDuration
enter animation durationenterFillMode
enter animation fill modeenterIterationCount
enter animation iteration countenterTimingFunction
enter animation timing functionexitAnimation
leave animation nameexitDelay
leave animation delayexitDirection
leave animation directionexitDuration
leave animation durationexitFillMode
leave animation fill modeexitIterationCount
leave animation iteration countexitTimingFunction
leave 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.