RemotionUI

Slide Left

Slide in from either side, with an optional mask reveal and an automatic exit.

PrimitivePrimitives

slide-left30fps · 960×540
Install
$ npx remotion-ui@latest add slide-left

Slides in on the horizontal — the reading axis, so it suits list rows and lower thirds where a rise would fight the line above.

Set from="right" to come in from the other side, or mask to slide out of a clipped box.

Agent notes

Install first, then import the copied source component locally. AI guide →

Import
@/remotion/primitives/slide-left
  • Use when: frame-level motion primitives and reusable animation wrappers.
  • Customize: durationInFrames, delayInFrames, spring, exit, plus copied source for timing, layout, colors, and typography.
  • Rule: do not import this component from the remotion-ui npm package; it is copied into your project.

Usage

Example
import { SlideLeft } from "@/remotion/primitives/slide-left"; <SlideLeft distance={60} from="left"> <p>Slide in from the left</p> </SlideLeft>

API Reference

PropTypeDescription
children*ReactNodeContent to animate.
durationInFramesnumberLength of the enter animation in frames.
delayInFramesnumberFrames to wait before the animation starts.
spring"smooth" | "snappy" | "bouncy" | Partial<SpringConfig> | booleanDrive the entrance with a spring instead of the ease-out curve.
exitbooleanAnimate back out, landing on the last frame of the surrounding Sequence.
exitInFramesnumberLength of the exit. Exits are shorter than entrances.
exitAtInFramesnumberFrame the exit starts on, overriding the end-of-window timing.
exitTravelnumberShare of the enter distance the exit travels.
exitDirection"reverse" | "continue"reverse leaves the way it came in, continue carries on through.
blockbooleanFill the parent's width instead of shrink-wrapping the child.
styleCSSPropertiesStyles merged onto the wrapper.
distancenumberHorizontal offset in pixels at the start. Under mask, defaults to the element's own width.
from"left" | "right"Side the child travels in from.
maskbooleanClip the child to its own box so it slides out of a mask.

Related