Skip to content
R

react-animate-height

Lightweight React component for animating height using CSS transitions

by stanko.tadicFree

#81in UI Libraries
0In stores

Description

React-animate-height is a lightweight React component that animates an element's height with CSS transitions. It slides an element up or dow…

Highlights

  • Animates height with CSS transitions
  • Optional opacity animation of the content
  • CSS classes for each animation state
  • Rewritten with hooks in version 3, needs React 16.8 or newer

Ratings & Reviews

No ratings yet

Be the first to rate react-animate-height.

People also visit

R

react-css-collapse

Component-wrapper for collapse animation with css for elements

UI Libraries
Launch
R

react-collapse

Component-wrapper for collapse animation for elements with variable

UI Libraries
Launch
R

react-smooth-collapse

React component for animating showing or hiding an element

UI Libraries
Launch
R

react-animate-on-scroll

React component to animate elements on scroll with animate.css

UI Libraries
Launch
R

react-native-collapsible

Animated collapsible component for React Native using the Animated API

UI Libraries
Launch
R

react-scroll

React scroll component

UI Libraries
Launch

react-animate-height FAQ

What does react-animate-height do?

It animates an element's height open and closed with CSS transitions, or to any height you set.

Does it have dependencies?

The README says it has no dependencies.

Which React version does it need?

Version 3 needs React 16.8 or newer, because it uses hooks. Version 2 is on a separate branch.

Can I animate the opacity too?

Yes. The animateOpacity prop animates the content's opacity.

What changed in version 3?

The callback names changed, for example onAnimationStart is now onHeightAnimationStart.

Is it free?

The listing shows the library as free. Its source is on GitHub.

What are the best react-animate-height alternatives?

Popular alternatives to react-animate-height include react-css-collapse, react-collapse and react-smooth-collapse. See all react-animate-height alternatives

Developer Stuff

Badges