DocsBlog

Get Started

Components

Data Grid

Signals

Styling

Theming

↑↓Navigate
↵Select
EscClose
  • 1.8.0

  • Day

    Night

    Preview

    Switch mode
  • cerberus

    acheron

    elysium

    oceanus

Get Started
Components
Data Grid
Signals
Styling
Theming

Concepts

Cerberus FactoryResponsive DesignCSS VariablesThemes & Color ModesColor opacity modifierConditional StylesVirtual ColorCascade LayersUtilities

Compositions

Animation StylesLayer StylesText Styles

Style Props

BackgroundBorderEffectsSpacingText GradientTransitionsz-index

Transitions

JSX style props for controlling an element's transition and animation.

  • source
View as Markdown
Open this page in Markdown
Anthropic
Open in Claude
Ask questions about this page
OpenAI
Open in ChatGPT
Ask questions about this page

Transition

Use the transition prop to control the transition of an element.

// hardcoded value
<Box
  bg="danger.bg.initial"
  transition="background 0.2s ease-in-out"
  _hover={{
    bg: "danger.bg.hover"
  }}
>
  Hover me
</Box>
 
// shortcut value
<Box bg="danger.bg.initial" _hover={{ bg: "danger.bg.hover" }} transition="backgrounds">
  Hover me
</Box>
PropCSS PropertyToken Category
transitiontransition-

Transition Timing Function

Use the transitionTimingFunction prop to control the timing function of a transition.

<Box
  bg="danger.bg.initial"
  _hover={{ bg: 'danger.bg.hover' }}
  transition="backgrounds"
  transitionTimingFunction="ease-in-out"
>
  Hover me
</Box>
PropCSS PropertyToken Category
transitionTimingFunctiontransition-timing-functioneasings

Transition Duration

Use the transitionDuration prop to control the duration of a transition.

<Box
  bg="danger.bg.initial"
  _hover={{ bg: 'danger.bg.hover' }}
  transition="backgrounds"
  transitionDuration="fast"
>
  Hover me
</Box>
PropCSS PropertyToken Category
transitionDurationtransition-durationdurations

Transition Delay

Use the transitionDelay prop to control the delay of a transition.

<Box
  bg="danger.bg.initial"
  _hover={{ bg: 'danger.bg.hover' }}
  transition="backgrounds"
  transitionDelay="fast"
>
  Hover me
</Box>
PropCSS PropertyToken Category
transitionDelaytransition-delaydurations

Animation

Use the animation prop to control the animation of an element.

<Box animation="bounce" />
PropCSS PropertyToken Category
animationanimation-name animations

Animation Name

Use the animationName prop to control the name of an animation. Compose multiple animation names to create complex animations.

Note

The value of the `animation` prop points to a global keyframe animation. Use the `theme.keyframes` object to define the animation.

<Box animationName="bounce, fade-in" animationDuration="fast" />
PropCSS PropertyToken Category
animationNameanimation-nameanimations

Animation Timing Function

Use the animationTimingFunction prop to control the timing function of an animation.

<Box animation="bounce" animationTimingFunction="ease-in-out" />
PropCSS PropertyToken Category
animationTimingFunctionanimation-timing-functioneasings

Animation Duration

Use the animationDuration prop to control the duration of an animation.

<Box animation="bounce" animationDuration="fast" />
PropCSS PropertyToken Category
animationDurationanimation-durationdurations

Animation Delay

Use the animationDelay prop to control the delay of an animation.

<Box animation="bounce" animationDelay="fast" />
PropCSS PropertyToken Category
animationDelayanimation-delaydurations

On this page

  • Transition
  • Transition Timing Function
  • Transition Duration
  • Transition Delay
  • Animation
  • Animation Name
  • Animation Timing Function
  • Animation Duration
  • Animation Delay
Edit this page on Github