Hook Uncurl
Stacked condensed caps lines uncurl into place, ending on 'Just make the video.'. A free, MIT-licensed Remotion text animation.
$ pnpm dlx shadcn@latest add @remocn/hook-uncurlUsage
// src/Root.tsx
import { Composition } from "remotion";
import { HookUncurl } from "@/components/remocn/hook-uncurl";
const HookUncurlScene = () => (
<HookUncurl question="Why make the video?" answer="Just make the video." />
);
export const RemotionRoot = () => (
<Composition
id="HookUncurl"
component={HookUncurlScene}
durationInFrames={250}
fps={60}
width={1280}
height={720}
/>
);Stacked caps lines enter curled, uncurl into place, then swap in a rolling change from the question to the answer. Pass question and answer; it ships light and dark.
Props12
| Prop | Type | Default |
|---|---|---|
| question | string"Why make the video?" The question set in stacked caps. | |
| answer | string"Just make the video." The answer that replaces it. | |
| stagger | number3 Frames between question words as they rise in; long questions tighten it to fit. | |
| answerAt | number40 Frame where the question mark uncurls and the answer rolls in. | |
| accent | string— Accent colour (any CSS colour). | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Overrides the theme background colour. | |
| fontFamily | string"Barlow Condensed" 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 multiplier; above 1 plays faster. | |
| theme | "dark" | "light""dark" Colour scheme; ships light and dark. | |
- questionstring
The question set in stacked caps.
Default
"Why make the video?" - answerstring
The answer that replaces it.
Default
"Just make the video." - staggernumber
Frames between question words as they rise in; long questions tighten it to fit.
Default
3 - answerAtnumber
Frame where the question mark uncurls and the answer rolls in.
Default
40 - accentstring
Accent colour (any CSS colour).
- inkstring
Text color; overrides the theme ink.
- backgroundstring
Overrides the theme background colour.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Barlow Condensed" - 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 multiplier; above 1 plays faster.
Default
1 - theme"dark" | "light"
Colour scheme; ships light and dark.
Default
"dark"