Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

jossmac/react-height-transition

Open more actions menu

Repository files navigation

React Height Transition

Animate height when children mount and unmount.

https://jossmac.github.io/react-height-transition

import HeightTransition from 'react-height-transition';

const AnimatedAlert = ({ isOpen, ...rest }) => (
  <HeightTransition initial={0} duration={400} easing="ease-in-out">
    {isOpen ? <Alert {...rest} /> : null}
  </HeightTransition>
);

Alternatives

This component is intentionally simple. For more sophisticated alternatives that react to changing content height, checkout:

About

📏 Animate height when children mount/unmount

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.