Transitions

Chakra exports five components `Fade`, `ScaleFade`, `Slide`, `SlideFade` and `Collapse` 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, Collapse } from '@chakra-ui/react'

Usage#

Chakra exports five components Fade, ScaleFade, Slide, SlideFade and Collapse 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#

Changing transitions manually using motion props#

Proudly made inNigeria by Segun Adebayo

Deployed by Vercel