Short Slide Right

A short headline slides in horizontally from the left as one group while its words appear in sequence through opacity, a compact entrance that reads as forward motion or progress. A free, MIT-licensed Remotion text animation.

In Remotion, Short Slide Right slides a short headline in horizontally from the left as one group while its words appear in sequence through opacity. Use it for a headline that should enter with a sense of forward motion or progress.

Installation
$ pnpm dlx shadcn@latest add @remocn/short-slide-right

How to make a headline glide in from the left while its words fade in, in Remotion

A short headline that glides in from the left while its words fade in one after another, to suggest forward motion, is one component. You do not need spring() on translateX, Series with premountFor, @remotion/transitions, Framer Motion or GSAP:

bash
npx shadcn@latest add @remocn/short-slide-right
  • The whole line travels distance pixels (24 by default) from the left to its place over the first 8 frames and sharpens from a 1.2px blur over 16 frames.
  • Each word fades in over 6 frames; word i starts at i × staggerDelay frames (3 by default).
  • Easing is a fixed Easing.bezier(0.2, 0.8, 0.2, 1) on interpolate(), not a spring(), and is not a prop; edit it in the copied file. speed plays the entrance faster or slower, and timing moves or stretches the slide and single words.

To swap one text for another use Shared Axis Z or Shared Axis Y; to stack words on their own lines use Short Slide Down.

Good to know

  • Length: 60 frames of motion at 30 fps (120 at 60 fps) with the default props. That is the minimum for its Sequence; add your own hold on top. The Usage example below is a 60 fps composition, so the numbers it hands to Remotion (durationInFrames, Sequence lengths) are doubled. The component's own props counted in frames (delay, stagger, hold) stay in 30 fps frames at any frame rate, see Frame rate.
  • staggerDelay and the other frame counts are 30 fps frames at any composition frame rate: on a 60 fps composition a staggerDelay of 3 is still 0.1 s.
  • Installs: remotion from npm, plus the remocn helpers frame-rate, timeline. The shadcn CLI copies the source into your project.
  • Font: none is loaded. The text uses var(--font-geist-sans) with a system sans fallback; set the font through className or edit the copied file.
  • Background: transparent, so it sits on whatever is behind it.

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { ShortSlideRight } from "@/components/remocn/short-slide-right";
 
const ShortSlideRightScene = () => (
  <ShortSlideRight text="Move with intent." distance={24} staggerDelay={3} />
);
 
export const RemotionRoot = () => (
  <Composition
    id="ShortSlideRight"
    component={ShortSlideRightScene}
    durationInFrames={120}
    fps={60}
    width={1280}
    height={720}
  />
);

The whole phrase shares one compact left-to-right slide while the words themselves reveal only through a staggered opacity cascade — motion stays controlled, the word order reads clearly.

With Backdrop

The component renders transparent — supply the background via Backdrop. It ships single-theme; edit the copied file to re-theme colors.

Pair with Backdrop to place the text inside a full-frame fill with a rounded, shadowed content frame:

tsx
import { Composition } from "remotion";
import { ShortSlideRight } from "@/components/remocn/short-slide-right";
import { Backdrop } from "@/components/remocn/backdrop";
 
const ShortSlideRightScene = () => (
  <Backdrop fill={{ type: "color", value: "#ffffff" }}>
    <ShortSlideRight text="Move with intent." distance={24} staggerDelay={3} />
  </Backdrop>
);
 
export const RemotionRoot = () => (
  <Composition
    id="ShortSlideRight"
    component={ShortSlideRightScene}
    durationInFrames={120}
    fps={60}
    width={1280}
    height={720}
  />
);

Props7

PropTypeDefault
textrequired
string—

The text to reveal

distance
number24

Horizontal slide distance in pixels the whole phrase travels from the left.

staggerDelay
number3

Per-word delay in frames for the opacity reveal cascade.

fontSize
number72

Font size in pixels

fontWeight
number600

CSS font-weight

color
string"#171717"

Text color (any valid CSS color)

className
string—

Optional className passed to the phrase container span

  • textrequiredstring

    The text to reveal

  • distancenumber

    Horizontal slide distance in pixels the whole phrase travels from the left.

    Default24

  • staggerDelaynumber

    Per-word delay in frames for the opacity reveal cascade.

    Default3

  • fontSizenumber

    Font size in pixels

    Default72

  • fontWeightnumber

    CSS font-weight

    Default600

  • colorstring

    Text color (any valid CSS color)

    Default"#171717"

  • classNamestring

    Optional className passed to the phrase container span