BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/snap-cn/text-swell

Text Swell

snap-cn/text-swell
FreeComponent

A title reveal where the lead word floats toward the viewer and hangs there while the sentence assembles around it — each trailing word pushes in and its letters bounce up off the baseline in a wave — before the whole line falls back to size.

Install it

npx shadcn@latest add https://snapcn.dev/r/text-swell.json

Source

registry/snap-cn/text-swell/index.tsxsnapcn.dev/r/text-swell.json · first 6 KB
1"use client";
2
3import { Fragment, useEffect, useRef, useState } from "react";
4import {
5 AbsoluteFill,
6 continueRender,
7 delayRender,
8 Easing,
9 getRemotionEnvironment,
10 interpolate,
11 useCurrentFrame,
12 useVideoConfig,
13} from "remotion";
14import { type SnapCnTheme, useSnapCnTheme } from "@/lib/snap-cn-ui";
15
16export interface TextSwellProps {
17 /** The sentence to assemble. Its first word leads, and everything else pushes it left. */
18 text?: string;
19 /** Final font size in px (the size the line settles at). */
20 fontSize?: number;
21 /** Overrides the design system's `foreground`. */
22 color?: string;
23 fontWeight?: number | string;
24 /** Design-system token overrides. */
25 theme?: Partial<SnapCnTheme>;
26 mode?: "light" | "dark";
27
28 /** Frames the lead word fades in over. */
29 introDuration?: number;
30 /** How far below its resting line the lead word starts, in em. */
31 riseDistance?: number;
32 /** Frames the lead word takes to rise into place. */
33 riseDuration?: number;
34
35 /** Size the lead word rises in at, relative to its final size. */
36 startScale?: number;
37 /**
38 * How far forward the line floats (2.1 = just over twice its final size).
39 * Capped so the line never leaves the frame — see `frontScale` in the docs.
40 */
41 frontScale?: number;
42 /** Frames after the start before the line begins floating forward. */
43 approachDelay?: number;
44 /** Frames the line takes to float forward. */
45 approachDuration?: number;
46
47 /**
48 * Frames before the second word arrives. The lead word is alone until then, so
49 * this is the beat between it landing and the sentence starting to build.
50 */
51 wordDelay?: number;
52 /** Frames between each trailing word arriving. */
53 wordStagger?: number;
54 /** How far right of its slot a trailing word starts, in em. */
55 wordPush?: number;
56 /**
57 * Frames a trailing word takes to push into its slot. The lead word is shoved
58 * left over the same window, so the push and the shove are one motion.
59 */
60 wordPushDuration?: number;
61
62 /**
63 * How many trailing words bounce their letters in. 1 (the default) bounces
64 * only the second word; the rest simply push in. The lead word never bounces.
65 */
66 bounceWords?: number;
67 /** How far each letter swells at the peak of its bounce (0.23 = 23% bigger). */
68 letterSwell?: number;
69 /** Frames between one letter starting its bounce and the next. */
70 letterStagger?: number;
71 /** Frames a letter takes to swell up. */
72 letterRise?: number;
73// … truncated

What it pulls in

npm packages

  • remotion

Other registry items

  • https://snapcn.dev/r/snap-cn-ui.json

Files it writes

  • registry/snap-cn/text-swell/index.tsx

Facts

Registry
snap-cn
Type
registry:component
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-13
Last confirmed
yesterday

Go to the source

snapcn.dev Raw registry item This item as JSON

More from snap-cn

All 24 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Answer Streamanswer-streamsnap-cnComponentsFree2 deps
UI Caretcaretsnap-cnComponentsFree1 dep
Follower Rushfollower-rushsnap-cnComponentsFree2 deps
Product Herohero-launchsnap-cnComponentsFree2 deps
UI Inputinputsnap-cnComponentsFree2 deps · 2 files
Karaoke Captionskaraoke-captionssnap-cnComponentsFree2 deps
Laptop Framelaptop-framesnap-cnComponentsFree1 dep
Logo Assemblelogo-assemblesnap-cnComponentsFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex