Glyph Relay
"Building a product" hands off between lines until a giant question mark resolves into "Launching it?". A free, MIT-licensed Remotion text animation.
$ pnpm dlx shadcn@latest add @remocn/glyph-relayUsage
// src/Root.tsx
import { Composition } from "remotion";
import { GlyphRelay } from "@/components/remocn/glyph-relay";
const GlyphRelayScene = () => (
<GlyphRelay line1={["Building a", "product"]} line2={["is", "easy."]} line3="Launching it?" />
);
export const RemotionRoot = () => (
<Composition
id="GlyphRelay"
component={GlyphRelayScene}
durationInFrames={292}
fps={60}
width={1280}
height={720}
/>
);A phrase is handed off glyph by glyph between lines until a giant question mark resolves into the final line. Pass line1, line2 (each a pair of text parts) and line3; it ships light and dark, over a gradient ground you can change with ground.
The ground is a live gradients.sh shader (GshGround), installed with the component as @remocn/gsh. Pick another look with the ground preset prop.
Props15
| Prop | Type | Default |
|---|---|---|
| theme | "dark" | "light""dark" Colour scheme; ships light and dark. | |
| accent | string"#3B5BFD" Accent colour (any CSS colour). | |
| line1 | [string, string]["Building a", "product"] First line as a pair of text parts. | |
| line2 | [string, string]["is", "easy."] Second line as a pair of text parts. | |
| line3 | string"Launching it?" Final line the question mark resolves into. | |
| push | number0.045 How far the scene pushes in over its length, as a share of its size. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Solid fill in place of the gradient ground; pass "transparent" to drop it. | |
| fontFamily | string"Onest" Typeface for the copy. Load the font in your project first. | |
| logo | React.ReactNode— Replaces the remocn mark. | |
| 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. | |
| ground | GshPresetId— Gradient preset used for the backdrop. | |
| groundParams | Partial<GradientParams>— Overrides for the gradient preset parameters. | |
- theme"dark" | "light"
Colour scheme; ships light and dark.
Default
"dark" - accentstring
Accent colour (any CSS colour).
Default
"#3B5BFD" - line1[string, string]
First line as a pair of text parts.
Default
["Building a", "product"] - line2[string, string]
Second line as a pair of text parts.
Default
["is", "easy."] - line3string
Final line the question mark resolves into.
Default
"Launching it?" - pushnumber
How far the scene pushes in over its length, as a share of its size.
Default
0.045 - inkstring
Text color; overrides the theme ink.
- backgroundstring
Solid fill in place of the gradient ground; pass "transparent" to drop it.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Onest" - logoReact.ReactNode
Replaces the remocn mark.
- 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 - groundGshPresetId
Gradient preset used for the backdrop.
- groundParamsPartial<GradientParams>
Overrides for the gradient preset parameters.