Short Slide Right
The whole phrase glides in from the left while words reveal in sequence through opacity
Installation
$ pnpm dlx shadcn@latest add @remocn/short-slide-rightUsage
// 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={60}
fps={30}
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={60}
fps={30}
width={1280}
height={720}
/>
);Props
| Prop | Type | Default | Description |
|---|---|---|---|
textrequired | string | — | The text to reveal |
distance | number | 24 | Horizontal slide distance in pixels the whole phrase travels from the left. |
staggerDelay | number | 3 | Per-word delay in frames for the opacity reveal cascade. |
fontSize | number | 72 | Font size in pixels |
fontWeight | number | 600 | CSS font-weight |
color | string | "#171717" | Text color (any valid CSS color) |
className | string | — | Optional className passed to the phrase container span |