They Are You
Short statements about someone rise one by one, then the leading They flips to an accent You in each. A free, MIT-licensed Remotion text animation.
In Remotion, They Are You raises short statements about a person one by one, then flips the leading word They into an accent-colored You on every line. Use it for an audience-recognition beat that describes the viewer and then turns it on them.
$ pnpm dlx shadcn@latest add @remocn/they-are-youGood to know
- Length: 93 frames of motion at 30 fps (186 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 stay in 30 fps frames at any frame rate, see Frame rate. - Installs:
remotion,@remotion/google-fontsfrom npm, plus the remocn helpersglide,frame-rate,timeline. The shadcn CLI copies the source into your project. - Font: loads Gabarito itself through
@remotion/google-fonts. PassfontFamilyto use your own face, and load that font in your project.
Usage
// src/Root.tsx
import { Composition } from "remotion";
import { TheyAreYou } from "@/components/remocn/they-are-you";
const TheyAreYouScene = () => (
<TheyAreYou
facts={[
"They write React for a living.",
"They have a launch on Monday.",
"They have never touched a timeline.",
]}
from="They"
to="You"
/>
);
export const RemotionRoot = () => (
<Composition
id="TheyAreYou"
component={TheyAreYouScene}
durationInFrames={320}
fps={60}
width={1280}
height={720}
/>
);Each fact rises in with its leading from word (They by default) in medium weight. After a beat the leading words flip one by one to the to word (You) in the accent color. Each fact must begin with the from word to flip; pass facts, from and to. It ships light and dark.
Props12
| Prop | Type | Default |
|---|---|---|
| facts | string[]— Statements that each begin with the from word. | |
| from | string"They" Leading word that gets replaced, such as They. | |
| to | string"You" Replacement word shown in the accent color, such as You. | |
| stagger | number6 Frames between one fact's pronoun flipping and the next. | |
| accent | string— Color of the replacement word; overrides the theme accent. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| fontFamily | string"Gabarito" 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" Light or dark palette. | |
- factsstring[]
Statements that each begin with the from word.
- fromstring
Leading word that gets replaced, such as They.
Default
"They" - tostring
Replacement word shown in the accent color, such as You.
Default
"You" - staggernumber
Frames between one fact's pronoun flipping and the next.
Default
6 - accentstring
Color of the replacement word; overrides the theme accent.
- inkstring
Text color; overrides the theme ink.
- backgroundstring
Background fill; pass "transparent" to drop it.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Gabarito" - 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"
Light or dark palette.
Default
"dark"