Skip to main content

Transitions

Bootstrap includes a few general use CSS transitions that can be applied to a number of components. React Bootstrap, bundles them up into a few composable <Transition> components from react-transition-group, a commonly used animation wrapper for React.

Encapsulating animations into components has the added benefit of making them more broadly useful, as well as portable for using in other libraries. All React-bootstrap components that can be animated, support pluggable <Transition> components.

Collapse​

Basic Example​

Add a collapse toggle animation to an element or component.

Result
Loading...
Live Editor

Horizontal​

Add a collapse toggle animation to an element or component to transition the width instead of height.

Result
Loading...
Live Editor

Fade​

Add a fade animation to a child element or component.

Result
Loading...
Live Editor

API​

Collapse​

Fade​