Thread Weave
A number or logo is hand-woven row by row on a loom of cream threads, then a caption settles. A free, MIT-licensed Remotion number animation.
$ pnpm dlx shadcn@latest add @remocn/thread-weaveUsage
// src/Root.tsx
import { Composition } from "remotion";
import { ThreadWeave } from "@/components/remocn/thread-weave";
const ThreadWeaveScene = () => (
<ThreadWeave value="24" caption="frames per second" />
);
export const RemotionRoot = () => (
<Composition
id="ThreadWeave"
component={ThreadWeaveScene}
durationInFrames={350}
fps={60}
width={1280}
height={720}
/>
);Warp threads set up the loom, then every row of the pattern is woven across in alternating directions until the figure appears in blue and orange cells. A caption settles under it. Pass value and caption, or set motif to mark to weave the Remocn mark; it ships light and dark through theme.
Props15
| Prop | Type | Default |
|---|---|---|
| value | string"24" Short figure to weave, as text. | |
| motif | "value" | "mark""value" Weave the value as text or the Remocn mark. | |
| caption | string"frames per second" Small line that settles under the cloth. | |
| weave | number108 Longest the weave may take, in frames; dense motifs speed up to fit. | |
| stats | booleantrue Shows the ends × picks counter under the cloth. | |
| logo | React.ReactNode— Replaces the remocn mark. | |
| fontFamily | string"Space Grotesk" Typeface for the copy. Load the font in your project first. | |
| accent | string"#3B5BFD" Accent color for highlights and small marks. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| grain | booleantrue Film grain over the scene. | |
| 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" Color theme, "dark" or "light". | |
- valuestring
Short figure to weave, as text.
Default
"24" - motif"value" | "mark"
Weave the value as text or the Remocn mark.
Default
"value" - captionstring
Small line that settles under the cloth.
Default
"frames per second" - weavenumber
Longest the weave may take, in frames; dense motifs speed up to fit.
Default
108 - statsboolean
Shows the ends × picks counter under the cloth.
Default
true - logoReact.ReactNode
Replaces the remocn mark.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Space Grotesk" - accentstring
Accent color for highlights and small marks.
Default
"#3B5BFD" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Background fill; pass "transparent" to drop it.
- grainboolean
Film grain over the scene.
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 - speednumber
Playback speed multiplier for the whole timeline.
Default
1 - theme"dark" | "light"
Color theme, "dark" or "light".
Default
"dark"
Common questions
How do I make a number or logo look hand-woven row by row in Remotion?
Install Thread Weave with npx shadcn@latest add @remocn/thread-weave and pass value and caption. Warp threads set up the loom, each row is woven across in turn until the figure appears, then the caption settles. It is plain SVG driven by interpolate(); you don't need @remotion/paths or @remotion/noise.
Which theme gives the cream-colored loom?
theme="dark", the default: cream threads #ECE9E2 on a near-black background. theme="light" weaves dark threads on an off-white #F5F4F0 background.
Can I change the figure colors?
Only partly. In dark, the figure runs from deep blue #1d2a8f through accent (default #3B5BFD) to orange #ff7a3d. In light the gradient is fixed. There is no palette prop; edit figureColor in the copied file for other colors.
What can I weave?
value uses a built-in 5×7 pixel font with the digits 0 to 9, +, %, ., x, k and a space; other characters are skipped. Set motif="mark" to weave the Remocn mark instead.
How long is it?
For the default "24" the weave ends around frame 121 at 30 fps and the caption settles around frame 139, then the frame holds. The weave is capped at weave frames (default 108). The timing is the same at any frame rate: give a 60 fps composition at least 280 frames.
Related effects
- Compact Stat: a clean digital stat.
- Number Mosaic: a figure made of loose pixels.
- Tally Marks: a hand-drawn counting feel.