Cursor Frame
A selection frame with handles and a size badge is dragged and resized around a headline, rewrapping it. A free, MIT-licensed Remotion text animation.
$ pnpm dlx shadcn@latest add @remocn/cursor-frameUsage
// src/Root.tsx
import { Composition } from "remotion";
import { CursorFrame } from "@/components/remocn/cursor-frame";
const CursorFrameScene = () => (
<CursorFrame title="Launch videos, in code." theme="light" accent="#3B5BFD" />
);
export const RemotionRoot = () => (
<Composition
id="CursorFrame"
component={CursorFrameScene}
durationInFrames={230}
fps={30}
width={1280}
height={720}
/>
);Words fade in, a cursor presses and drags a selection frame over them, then resizes it so the headline rewraps onto two lines before the frame clears. Pass title for the headline; it ships light and dark through theme and defaults to light.
Props11
| Prop | Type | Default |
|---|---|---|
| title | string"Launch videos, in code." Headline that gets selected and rewrapped | |
| accent | string"#3B5BFD" Accent color (any valid CSS color) | |
| 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. | |
| fontWeight | number400 Weight of the title. | |
| showCursor | booleantrue Draws the mouse cursor that drags the frame. | |
| 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. | |
| theme | "dark" | "light""light" Ships light and dark palettes | |
| speed | number1 Playback speed multiplier | |
- titlestring
Headline that gets selected and rewrapped
Default
"Launch videos, in code." - accentstring
Accent color (any valid CSS color)
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" - fontWeightnumber
Weight of the title.
Default
400 - showCursorboolean
Draws the mouse cursor that drags the frame.
Default
true - 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 - theme"dark" | "light"
Ships light and dark palettes
Default
"light" - speednumber
Playback speed multiplier
Default
1