react-height-transition

    1.0.0 • Public • Published

    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>
    );

    Install

    npm i react-height-transition

    DownloadsWeekly Downloads

    11

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    245 kB

    Total Files

    8

    Last publish

    Collaborators

    • jossmac