Less More
A dimmed line is set against a bright accent line that lands below it. A free, MIT-licensed Remotion text animation.
$ pnpm dlx shadcn@latest add @remocn/less-moreUsage
// src/Root.tsx
import { Composition } from "remotion";
import { LessMore } from "@/components/remocn/less-more";
const LessMoreScene = () => (
<LessMore less="Less explaining." more="More showing." />
);
export const RemotionRoot = () => (
<Composition
id="LessMore"
component={LessMoreScene}
durationInFrames={260}
fps={60}
width={1280}
height={720}
/>
);The less line enters and fades back while the more line lands below it in the accent color. Pass less and more for your own contrast pair. It ships in light and dark through the theme prop.
Props12
| Prop | Type | Default |
|---|---|---|
| less | string"Less explaining." Line that dims. | |
| more | string"More showing." Line that lands in the accent color. | |
| swapAt | number34 Frame where the first line starts to shrink and the second to grow. | |
| fillAt | number80 Frame where the second line fills with the accent. | |
| accent | string— Accent color override; falls back to the theme accent. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background color override; falls back to the theme background. | |
| fontFamily | string"Figtree" Typeface for the copy. Load the font in your project first. | |
| scale | number1 Size of the foreground around the frame's center; the background stays put. | |
| delay | number0 Frames to hold the first frame before anything moves. | |
| speed | number1 Playback speed multiplier for the whole timeline. | |
| theme | "dark" | "light""dark" Ships light and dark; picks the palette. | |
- lessstring
Line that dims.
Default
"Less explaining." - morestring
Line that lands in the accent color.
Default
"More showing." - swapAtnumber
Frame where the first line starts to shrink and the second to grow.
Default
34 - fillAtnumber
Frame where the second line fills with the accent.
Default
80 - accentstring
Accent color override; falls back to the theme accent.
- inkstring
Text color; overrides the theme ink.
- backgroundstring
Background color override; falls back to the theme background.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Figtree" - scalenumber
Size of the foreground around the frame's center; the background stays put.
Default
1 - delaynumber
Frames to hold the first frame before anything moves.
Default
0 - speednumber
Playback speed multiplier for the whole timeline.
Default
1 - theme"dark" | "light"
Ships light and dark; picks the palette.
Default
"dark"