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.
$ pnpm dlx shadcn@latest add @remocn/short-slide-rightHow to slide a headline in horizontally with words appearing in sequence
A short headline that slides in from the left while its words fade in one after another is one component:
npx shadcn@latest add @remocn/short-slide-right- The whole line travels
distancepixels (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
istarts ati × staggerDelayframes (3 by default). - Easing is a fixed
Easing.bezier(0.2, 0.8, 0.2, 1)oninterpolate(), not aspring(), and is not a prop; edit it in the copied file.speedplays the entrance faster or slower, andtimingmoves 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,Sequencelengths) 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. staggerDelayand the other frame counts are 30 fps frames at any composition frame rate: on a 60 fps composition astaggerDelayof 3 is still 0.1 s.- Installs:
remotionfrom npm, plus the remocn helpersframe-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 throughclassNameor edit the copied file. - Background: transparent, so it sits on whatever is behind it.
Usage
// 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:
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
| Prop | Type | Default |
|---|---|---|
| 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.
Default
24 - staggerDelaynumber
Per-word delay in frames for the opacity reveal cascade.
Default
3 - fontSizenumber
Font size in pixels
Default
72 - fontWeightnumber
CSS font-weight
Default
600 - colorstring
Text color (any valid CSS color)
Default
"#171717" - classNamestring
Optional className passed to the phrase container span