An open API service indexing awesome lists of open source software.

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

📏 Animate height when children mount/unmount
https://github.com/jossmac/react-height-transition

animate height mount react slide transition

Last synced: about 1 year ago
JSON representation

📏 Animate height when children mount/unmount

Awesome Lists containing this project

README

          

# React Height Transition

Animate height when children mount and unmount.

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

```jsx
import HeightTransition from 'react-height-transition';

const AnimatedAlert = ({ isOpen, ...rest }) => (

{isOpen ? : null}

);
```

## Alternatives

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

- https://github.com/souporserious/react-fluid-container
- https://github.com/Stanko/react-animate-height
- https://github.com/nkbt/react-collapse