Transitions

Chakra exports four components `Fade`, `ScaleFade`, `Slide`, and `SlideFade` to provide simple transitions.

Import#

Most transition components are made using framer-motion. They accept the following props:

  • Common props from framer's motion elements
  • in prop used to trigger the transition
  • unmountOnExit prop used to unmount the component when it is not visible.
import { Fade, ScaleFade, Slide, SlideFade } from '@chakra-ui/react'

Usage#

Chakra exports four components Fade, ScaleFade, Slide, and SlideFade to provide simple transitions.

Fade transition#

ScaleFade transition#

Slide transition#

Slide Fade transition#

Collapse transition#

The Collapse component is used to create regions of content that can expand/collapse with a simple animation. It helps to hide content that's not immediately relevant to the user.

Changing the startingHeight#

Proudly made inNigeria by Segun Adebayo

Deployed by Vercel