react-height-transition
v1.0.0
Published
Animate height when children mount/unmount.
Downloads
11
Maintainers
Readme
React Height Transition
Animate height when children mount/unmount.
import HeightTransition from 'react-height-transition';
const AnimatedAlert = ({ isOpen, ...rest }) => (
<HeightTransition initial={0}>
{isOpen ? <Alert {...rest} /> : null}
</HeightTransition>
);