Slide
v1.0.2Updated 28 Jul 2026Translates its child in from a given direction while fading it, so content enters with a sense of where it came from. `direction` picks the origin edge (up / down / left / right) and `distance` sets the travel in px. Pair it with Fade and a per-item delay to build a staggered grid entrance.
Preview
Live · 3 stories▸Why this is recommendedslidetransitionanimationtranslate+6
Slide — all directions.
- ✓Sliding a notification or toast in from the edge
- ✓Staggering a grid of cards up into view
- ✓Revealing a drawer or side panel sliding in from an edge
- ✓Animating stepper content between steps
- Directional entrance: up / down / left / right
- Configurable travel distance in px (default 16)
- Combined opacity fade + transform
- Configurable duration / delay / easing per instance
- unmountOnExit removes the child from the DOM after exit
- Respects prefers-reduced-motion (snaps, no animation)
- data-direction + data-state attributes for debugging
- ✕Animating height or width (use Collapse)
- ✕In-place entrances with no movement (use Fade or Grow)
- ✕Page-level route transitions
Install
Ask your agent, or call the MCP tool directly. The resolved bundle is written into your project.
Usage
Tick variants in the left menu — each adds a tab with that variant’s real story source, the same code the preview above renders.
Props
inWhether the child is shown; drives the transition
yesdirectionDirection the child travels as it enters; it moves in from the opposite edge (e.g. 'up' slides upward from below). Default 'up'
—distanceTravel distance in px. Default 16
—durationDuration in ms. Default 200
—delayDelay in ms before the transition starts. Default 0
—easingTiming function. Default 'ease-out'
—unmountOnExitRemove the child from the DOM after exit. Default false
—classNameExtra classes merged onto the wrapper element
—styleExtra inline styles; transition-driven properties take precedence
—refRef to the wrapper element (React 19 ref-as-prop)
—childrenContent to slide
yes