Word Acts
Each word acts out its own meaning in a short beat, ending on a held poster word. A free, MIT-licensed Remotion text animation.
In Remotion, Word Acts is a feature list where each word acts out its meaning: stretch stretches, split splits, heavy drops, fast zips, and the last word holds as a poster. Use it for a feature-list beat that demonstrates itself.
$ pnpm dlx shadcn@latest add @remocn/word-actsGood to know
- Length: 139 frames of motion at 30 fps (278 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 Geist 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 { WordActs } from "@/components/remocn/word-acts";
const WordActsScene = () => (
<WordActs
acts={[
{ word: "stretch", act: "stretch" },
{ word: "heavy", act: "heavy" },
{ word: "rebuilt", act: "rebuilt" },
]}
hold={30}
/>
);
export const RemotionRoot = () => (
<Composition
id="WordActs"
component={WordActsScene}
durationInFrames={252}
fps={60}
width={1280}
height={720}
/>
);Words play one after another, each performing its meaning: stretch, split, heavy (falls and lands), faster (rushes in and snaps) and rebuilt (strokes scatter and reassemble). Pass acts as a list of { word, act, frames? }; the last word also holds for hold frames. Total length is the sum of the acts' frames plus the hold, and it ships light and dark through theme.
Props11
| Prop | Type | Default |
|---|---|---|
| acts | WordActBeat[]DEFAULT_ACTS List of `{ word, act, frames? }` beats; `rebuilt` words must be lowercase a–z. | |
| words | string[]— Words for the acts in order; each one replaces its act's word. | |
| hold | number32 Extra frames the final word holds as a poster. | |
| accent | string"#3B5BFD" Accent color for the gradient marks and strokes. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| fontFamily | string"Geist" 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. | |
| theme | "dark" | "light""dark" Ships light and dark. | |
- actsWordActBeat[]
List of `{ word, act, frames? }` beats; `rebuilt` words must be lowercase a–z.
Default
DEFAULT_ACTS - wordsstring[]
Words for the acts in order; each one replaces its act's word.
- holdnumber
Extra frames the final word holds as a poster.
Default
32 - accentstring
Accent color for the gradient marks and strokes.
Default
"#3B5BFD" - 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
"Geist" - 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.
Default
1 - theme"dark" | "light"
Ships light and dark.
Default
"dark"