Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

docs: Remotion text animations answer page, typography index rewrite

kapishdima2029eac881f4
diff --git a/components/docs/index/data.ts b/components/docs/index/data.ts
index e609974e..aa8136ed 100644
--- a/components/docs/index/data.ts
+++ b/components/docs/index/data.ts
@@ -65,7 +65,7 @@ export function getEntry(url: string): DocEntry | undefined {
if (!page) return undefined;
return {
url: page.url,
- title: page.data.title,
+ title: page.data.navTitle ?? page.data.title,
description: page.data.description,
component: page.data.component,
isNew: NEW_BADGE_PATHS.has(page.url),
diff --git a/content/docs/guides/meta.json b/content/docs/guides/meta.json
index 3e4476a9..0cfc1d8a 100644
--- a/content/docs/guides/meta.json
+++ b/content/docs/guides/meta.json
@@ -15,6 +15,7 @@
"how-a-video-is-built",
"directing-your-agent",
"words-on-screen",
+ "remotion-text-animations",
"your-brand",
"music-and-sound",
"one-video-three-formats",
diff --git a/content/docs/guides/remotion-text-animations.mdx b/content/docs/guides/remotion-text-animations.mdx
new file mode 100644
index 00000000..5b4cd8f2
--- /dev/null
+++ b/content/docs/guides/remotion-text-animations.mdx
@@ -0,0 +1,206 @@
+---
+title: "Remotion text animations: 256 free animated text effects, with code"
+navTitle: Text animations
+description: "How to animate text in Remotion, and 256 ready-made, MIT-licensed text animation components you install with the shadcn CLI: word reveals, typewriter, highlights, word swaps, counters, glitch and kinetic type."
+---
+
+import { Faq } from "@/components/docs/index/introduction/faq";
+
+_Last updated: November 9, 2026_
+
+To make animated text effects in Remotion, every style value of the text (opacity, position,
+blur, letter spacing) has to be computed from the current frame with `useCurrentFrame()` and
+`interpolate()` or `spring()`. You split the text into words or letters and offset each one's
+start frame. Or you install a finished effect: Remocn has 256 free, MIT-licensed text animation
+components for Remotion, plus 31 caption styles, added with
+`npx shadcn@latest add @remocn/<name>`.
+
+Each component is copied into your project as one TypeScript file. There is no runtime package to
+depend on, and you can edit the source.
+
+## How to animate text in Remotion
+
+A word-by-word reveal written by hand looks like this:
+
+```tsx
+import { interpolate, useCurrentFrame } from "remotion";
+
+export const WordReveal = ({ text }: { text: string }) => {
+ const frame = useCurrentFrame();
+
+ return (
+ <h1 style={{ fontSize: 96 }}>
+ {text.split(" ").map((word, i) => {
+ // Each word starts 4 frames after the previous one and takes 12 frames.
+ const progress = interpolate(frame - i * 4, [0, 12], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ });
+ return (
+ <span
+ key={i}
+ style={{
+ display: "inline-block",
+ marginRight: "0.25em",
+ opacity: progress,
+ translate: `0 ${(1 - progress) * 20}px`,
+ }}
+ >
+ {word}
+ </span>
+ );
+ })}
+ </h1>
+ );
+};
+```
+
+The same effect from Remocn, followed by a highlighted line:
+
+```bash
+npx shadcn@latest add @remocn/staggered-fade-up @remocn/marker-highlight
+```
+
+```tsx
+import { AbsoluteFill, Sequence } from "remotion";
+import { MarkerHighlight } from "@/components/remocn/marker-highlight";
+import { StaggeredFadeUp } from "@/components/remocn/staggered-fade-up";
+
+export const Hook = () => (
+ <AbsoluteFill>
+ <Sequence durationInFrames={90}>
+ <StaggeredFadeUp text="Every launch needs a video" staggerDelay={4} />
+ </Sequence>
+ <Sequence from={90} durationInFrames={90}>
+ <MarkerHighlight before="Yours ships " highlight="today" after="." />
+ </Sequence>
+ </AbsoluteFill>
+);
+```
+
+Every component page lists the component's props and its natural length in frames at 30fps.
+That length is the minimum for its `Sequence`. Add hold frames on top if the text should stay on
+screen after it settles.
+
+## Remotion text animation pitfalls
+
+These are the mistakes that make text flicker, jump or render differently from the preview.
+Remocn's text components handle each of them in their source, which you can read after install.
+
+- **CSS transitions and keyframes don't render.** Remotion renders frames out of order and in
+ parallel, so wall-clock animation never reaches the MP4. None of the typography components uses
+ a CSS `transition`, `animation` or `@keyframes`; every value comes from the frame.
+- **`Math.random()` changes on every render.** Scrambles and glitches built on it flicker and
+ differ between render threads. None of the components calls `Math.random()`. The ones with
+ randomness in them, such as `matrix-decode`, `rgb-glitch-text` and `type-wall`, use Remotion's
+ seeded `random()`, so frame 40 always looks the same.
+- **The font isn't loaded on the first frame.** The text renders in a fallback font, and anything
+ measured from it (line widths, where a highlight or caret sits) is wrong. Most of the
+ components load their font through `@remotion/google-fonts`, and most of the ones that lay text out
+ by measuring it hold the render with `delayRender()` until the font has loaded and the measurement
+ is done.
+- **Unclamped `interpolate()` keeps going.** Without `extrapolateRight: "clamp"`, a fade passes 1
+ and a slide overshoots its end position. The components clamp their interpolations.
+- **Timing written in frames breaks at another frame rate.** `typewriter` takes
+ `charsPerSecond` and converts it with the composition's `fps`. Almost every component also
+ takes a `speed` prop that retimes the whole effect without editing its code.
+- **Spaces collapse when text is split into spans.** Splitting per character drops the spaces
+ between words. Per-letter components such as `soft-blur-in` and `typewriter` render with
+ `white-space: pre`, so the spaces stay.
+
+## Which Remocn text animation to use
+
+Twenty-one components picked by the job they do. The [Typography](/docs/typography) page lists
+all 256 text animation components.
+
+| Job | Component | What it does | Length | Install |
+|---|---|---|---|---|
+| Word-by-word headline | [Staggered Fade Up](/docs/typography/staggered-fade-up) | Words slide up and fade in, one after another | 90f | `npx shadcn@latest add @remocn/staggered-fade-up` |
+| Letter-by-letter, soft | [Soft Blur In](/docs/typography/soft-blur-in) | Each character fades in with a gentle blur and lift | 60f | `npx shadcn@latest add @remocn/soft-blur-in` |
+| Focus pull | [Focus Blur Resolve](/docs/typography/focus-blur-resolve) | Text sharpens from heavy blur, then blurs out | 90f | `npx shadcn@latest add @remocn/focus-blur-resolve` |
+| Lines rising from a mask | [Mask Reveal Up](/docs/typography/mask-reveal-up) | Lines reveal upward with a compact stagger | 90f | `npx shadcn@latest add @remocn/mask-reveal-up` |
+| Tracking in | [Tracking In](/docs/typography/tracking-in) | Letter spacing collapses while blur clears, on a spring | 90f | `npx shadcn@latest add @remocn/tracking-in` |
+| One punchy word | [Spring Scale In](/docs/typography/spring-scale-in) | Words pop in with a soft overshoot | 60f | `npx shadcn@latest add @remocn/spring-scale-in` |
+| Phrase that builds centered | [Kinetic Center Build](/docs/typography/kinetic-center-build) | Words enter from the right and push the line to center | 60f | `npx shadcn@latest add @remocn/kinetic-center-build` |
+| Typed text | [Typewriter](/docs/typography/typewriter) | Character-by-character typing with a blinking cursor | 120f | `npx shadcn@latest add @remocn/typewriter` |
+| Handwritten note | [Handwrite](/docs/typography/handwrite) | Handwritten text laid down letter by letter, stop-motion style | 120f | `npx shadcn@latest add @remocn/handwrite` |
+| Highlight a phrase | [Marker Highlight](/docs/typography/marker-highlight) | A marker block draws behind a phrase | 90f | `npx shadcn@latest add @remocn/marker-highlight` |
+| Recolor one word | [Inline Highlight](/docs/typography/inline-highlight) | One word in a sentence shifts to a brand color | 90f | `npx shadcn@latest add @remocn/inline-highlight` |
+| Draw attention with light | [Shimmer Sweep](/docs/typography/shimmer-sweep) | A shine travels across muted text | 120f | `npx shadcn@latest add @remocn/shimmer-sweep` |
+| Rotating word after a prefix | [Inline Word Roll](/docs/typography/inline-word-roll) | Words switch beside a fixed prefix with a vertical roll | 75f | `npx shadcn@latest add @remocn/inline-word-roll` |
+| Swap one phrase for another | [Per-Word Crossfade](/docs/typography/per-word-crossfade) | One phrase fades out as the next fades in, word by word | 90f | `npx shadcn@latest add @remocn/per-word-crossfade` |
+| Correct a claim | [Strikethrough Replace](/docs/typography/strikethrough-replace) | Strikes the old text, then fades the new text in | 120f | `npx shadcn@latest add @remocn/strikethrough-replace` |
+| Count up to a number | [Rolling Number](/docs/typography/rolling-number) | Odometer that settles exactly on the target value | 150f | `npx shadcn@latest add @remocn/rolling-number` |
+| Decode / scramble | [Matrix Decode](/docs/typography/matrix-decode) | A random scramble resolves left to right into the text | 90f | `npx shadcn@latest add @remocn/matrix-decode` |
+| Glitch | [RGB Glitch Text](/docs/typography/rgb-glitch-text) | Three RGB-offset copies jitter for a chromatic glitch | 90f | `npx shadcn@latest add @remocn/rgb-glitch-text` |
+| Looping ticker | [Infinite Marquee](/docs/typography/infinite-marquee) | A horizontal text strip that loops seamlessly | 180f | `npx shadcn@latest add @remocn/infinite-marquee` |
+| Draw the letters | [Outline Trace](/docs/typography/outline-trace) | Glyph outlines draw as strokes, then the fill wipes in | 44f | `npx shadcn@latest add @remocn/outline-trace` |
+| Captions from a voiceover | [Karaoke](/docs/captions/components/caption-karaoke) | Each word fills with color as it is spoken | From the transcript | `npx shadcn@latest add @remocn/caption-karaoke` |
+
+For subtitles timed to speech, see the [captions](/docs/captions/getting-started/introduction)
+section: 31 caption styles that render from a transcript.
+
+## Remocn vs Remotion Bits vs snapcn vs hand-rolled
+
+Facts about the other libraries come from their own sites, checked on November 9, 2026.
+
+| | Hand-rolled | [Remotion Bits](https://remotion-bits.dev) | [snapcn](https://snapcn.dev) | Remocn |
+|---|---|---|---|---|
+| What you get | Your own code | One configurable `AnimatedText` (split by character, word or line, with stagger) plus `Typewriter`; about 14 text examples | Twelve free text components on its text-animation page; its Text & Titles list has more, some marked Pro | 256 text animation components plus 31 caption styles, one component per effect |
+| Install | — | `npm install remotion-bits`, or copy the source with jsrepo | `npx shadcn@latest add @snapcn/<name>` | `npx shadcn@latest add @remocn/<name>` |
+| Price and license | Free | Free, MIT | 60 components MIT, 81 Pro (site-wide, per its footer) | Free, MIT, every component |
+| Pick it when | You need one simple effect and want zero dependencies | You want one primitive you configure yourself | You want its specific look and its notes on rendering scaled type | You want a finished, distinct effect for each beat without writing the motion |
+
+The options combine. A Remocn component is plain Remotion code in your project, so you can put it
+next to Remotion Bits primitives or your own effects in the same composition.
+
+## Using Remocn text animations from an AI agent
+
+- **Agent skill:** `npx skills add Remocn/remocn`. The agent reads the live component index from
+ remocn.dev and picks text effects by their use and avoid notes.
+- **Plugin for Claude Code and Codex:** `/plugin install remocn --marketplace Remocn/remocn`, then
+ `/remocn:video <brief>`.
+- **MCP server:** add `https://remocn.dev/mcp` to any MCP client. No auth. Ask for "a typewriter
+ headline" and `search_components` returns matching text effects with install commands. See
+ [MCP server](/docs/getting-started/mcp-server).
+- **Plain text:** every Typography page in one file at
+ [/llms-full/typography.txt](https://remocn.dev/llms-full/typography.txt), and every component
+ with its use / avoid signal at [/llms-components.txt](https://remocn.dev/llms-components.txt).
+ Any docs URL returns Markdown when you append `.md`.
+
+## FAQ
+
+<Faq>
+
+**How do I animate text in Remotion?**
+Compute every style value from `useCurrentFrame()` with `interpolate()` or `spring()`, split the text into words or letters, and give each one a later start frame. Or install a ready-made effect with `npx shadcn@latest add @remocn/<name>`.
+
+**Are there free text animation components for Remotion?**
+Yes. Remocn has 256 free, MIT-licensed text animation components and 31 caption styles. You install them with the shadcn CLI, and the source is copied into your project.
+
+**Can I use CSS animations for text in Remotion?**
+No. Remotion renders frames out of order and in parallel, so CSS transitions and keyframes don't show up in the render. Every value has to come from the current frame.
+
+**How do I make a typewriter effect in Remotion?**
+Install it with `npx shadcn@latest add @remocn/typewriter` and pass `text` and `charsPerSecond`. The cursor blink is computed from the frame, so it is the same in every render.
+
+**Why does my text flicker or jump in the rendered video?**
+The usual causes are `Math.random()` in the render, a font that loaded after the first frame, or an `interpolate()` without clamping. See the [pitfalls](#remotion-text-animation-pitfalls) above.
+
+**Do Remocn components need a runtime dependency?**
+No. The shadcn CLI copies each component's source into your project. Remotion is the only runtime, and it keeps [its own license](https://www.remotion.dev/docs/license).
+
+**Can I change the font, colors and timing?**
+Yes. Props cover text, colors, sizes and a `speed` multiplier on most components, and the source is yours to edit.
+
+**Is Remocn made by Remotion or shadcn?**
+No. Remocn is an independent open-source project, not affiliated with Remotion or shadcn. It is listed on Remotion's resources page.
+
+</Faq>
+
+## What's next
+
+- [Typography](/docs/typography): all 256 text animation components, grouped by category
+- [Captions](/docs/captions/getting-started/introduction): 31 transcript-driven caption styles
+- [Words on screen](/docs/guides/words-on-screen): how to write lines people can read in two seconds
+- [Installation](/docs/getting-started/installation): add Remocn to an existing Remotion project
diff --git a/content/docs/typography/index.mdx b/content/docs/typography/index.mdx
index 83c02106..234095f5 100644
--- a/content/docs/typography/index.mdx
+++ b/content/docs/typography/index.mdx
@@ -1,12 +1,67 @@
---
-title: Typography
-description: Text effects, reveals, and kinetic type for Remotion
+title: "Typography: 256 animated text effects for Remotion"
+navTitle: Typography
+description: "256 free, MIT-licensed animated text effects for Remotion: reveals, highlights, word swaps, counters, glitches and kinetic type. Install any one with npx shadcn@latest add @remocn/<name>."
---
import { CategoryIndex } from "@/components/docs/index/category/category-index";
import { ComponentGroup } from "@/components/docs/index/category/component-group";
-Every way text can move, fade, glitch, or stretch across the screen. From quiet word-by-word reveals to full-bleed marquees and RGB glitches.
+_Last updated: November 9, 2026_
+
+Remocn has 256 free, MIT-licensed text animation components for Remotion: word and letter
+reveals, highlights, typewriters, word swaps, counters, glitches, kinetic posters and pull quotes.
+Each one installs with the shadcn CLI and lands in your project as a single TypeScript file, with
+no runtime dependency besides Remotion.
+
+```bash
+npx shadcn@latest add @remocn/staggered-fade-up
+```
+
+```tsx
+import { Composition } from "remotion";
+import { StaggeredFadeUp } from "@/components/remocn/staggered-fade-up";
+
+const Title = () => <StaggeredFadeUp text="Ship videos faster" staggerDelay={4} />;
+
+export const RemotionRoot = () => (
+ <Composition id="Title" component={Title} durationInFrames={90} fps={30} width={1280} height={720} />
+);
+```
+
+## Pick a text effect by job
+
+| Job | Component | Length | Install |
+|---|---|---|---|
+| Word-by-word headline | [Staggered Fade Up](/docs/typography/staggered-fade-up) | 90f | `npx shadcn@latest add @remocn/staggered-fade-up` |
+| Letter-by-letter, soft | [Soft Blur In](/docs/typography/soft-blur-in) | 60f | `npx shadcn@latest add @remocn/soft-blur-in` |
+| Focus pull from blur | [Focus Blur Resolve](/docs/typography/focus-blur-resolve) | 90f | `npx shadcn@latest add @remocn/focus-blur-resolve` |
+| Lines rising from a mask | [Mask Reveal Up](/docs/typography/mask-reveal-up) | 90f | `npx shadcn@latest add @remocn/mask-reveal-up` |
+| Tracking in | [Tracking In](/docs/typography/tracking-in) | 90f | `npx shadcn@latest add @remocn/tracking-in` |
+| One punchy word | [Spring Scale In](/docs/typography/spring-scale-in) | 60f | `npx shadcn@latest add @remocn/spring-scale-in` |
+| Phrase that builds centered | [Kinetic Center Build](/docs/typography/kinetic-center-build) | 60f | `npx shadcn@latest add @remocn/kinetic-center-build` |
+| Typed text | [Typewriter](/docs/typography/typewriter) | 120f | `npx shadcn@latest add @remocn/typewriter` |
+| Handwritten note | [Handwrite](/docs/typography/handwrite) | 120f | `npx shadcn@latest add @remocn/handwrite` |
+| Highlight a phrase | [Marker Highlight](/docs/typography/marker-highlight) | 90f | `npx shadcn@latest add @remocn/marker-highlight` |
+| Recolor one word | [Inline Highlight](/docs/typography/inline-highlight) | 90f | `npx shadcn@latest add @remocn/inline-highlight` |
+| Rotating word after a prefix | [Inline Word Roll](/docs/typography/inline-word-roll) | 75f | `npx shadcn@latest add @remocn/inline-word-roll` |
+| Swap one phrase for another | [Per-Word Crossfade](/docs/typography/per-word-crossfade) | 90f | `npx shadcn@latest add @remocn/per-word-crossfade` |
+| Correct a claim | [Strikethrough Replace](/docs/typography/strikethrough-replace) | 120f | `npx shadcn@latest add @remocn/strikethrough-replace` |
+| Count up to a number | [Rolling Number](/docs/typography/rolling-number) | 150f | `npx shadcn@latest add @remocn/rolling-number` |
+| Decode / scramble | [Matrix Decode](/docs/typography/matrix-decode) | 90f | `npx shadcn@latest add @remocn/matrix-decode` |
+| Glitch | [RGB Glitch Text](/docs/typography/rgb-glitch-text) | 90f | `npx shadcn@latest add @remocn/rgb-glitch-text` |
+| Looping ticker | [Infinite Marquee](/docs/typography/infinite-marquee) | 180f | `npx shadcn@latest add @remocn/infinite-marquee` |
+| Draw the letters | [Outline Trace](/docs/typography/outline-trace) | 44f | `npx shadcn@latest add @remocn/outline-trace` |
+| Text on a curve | [Path Ride](/docs/typography/path-ride) | 70f | `npx shadcn@latest add @remocn/path-ride` |
+
+Length is the frames of motion at 30fps, the minimum for the component's `Sequence`. For how to
+animate text by hand, the Remotion pitfalls these components handle and a comparison with other
+libraries, read [Remotion text animations](/docs/guides/remotion-text-animations). For subtitles
+timed to speech, see the 31 caption styles in
+[Captions](/docs/captions/getting-started/introduction).
+
+Agents can read this whole section, every component's props and usage included, as one file at
+[/llms-full/typography.txt](https://remocn.dev/llms-full/typography.txt).
<CategoryIndex section="/docs/typography">
@@ -33,6 +88,9 @@ Every way text can move, fade, glitch, or stretch across the screen. From quiet
## Reveals
+Entrances for a headline or a line of copy: by word, by letter, through blur or through a mask.
+`staggered-fade-up` is the neutral default; `soft-blur-in` and `focus-blur-resolve` read premium.
+
</ComponentGroup>
<ComponentGroup
@@ -45,6 +103,9 @@ Every way text can move, fade, glitch, or stretch across the screen. From quiet
## Highlights
+Point at one word or phrase inside a sentence that is already on screen.
+A marker block, a color shift or a passing shine.
+
</ComponentGroup>
<ComponentGroup
@@ -56,6 +117,9 @@ Every way text can move, fade, glitch, or stretch across the screen. From quiet
## Dynamic Text
+Text that changes while it plays.
+Typed character by character, or rolled through a reel of values.
+
</ComponentGroup>
<ComponentGroup
@@ -67,6 +131,9 @@ Every way text can move, fade, glitch, or stretch across the screen. From quiet
## Tech & Glitch
+Scrambles that decode into the text, and RGB-split glitches.
+Both use Remotion's seeded `random()`, so every render matches the preview.
+
</ComponentGroup>
<ComponentGroup
@@ -81,6 +148,7 @@ Every way text can move, fade, glitch, or stretch across the screen. From quiet
## Text Transitions
Swap one phrase for another with motion.
+Use them when the layout stays and only the words change.
</ComponentGroup>
@@ -95,6 +163,7 @@ Swap one phrase for another with motion.
## Kinetic
Word-by-word builds with motion and momentum.
+They suit a hook line that should land one word at a time.
</ComponentGroup>
@@ -201,6 +270,9 @@ Type built the way a motion designer builds it: trim paths on real glyph outline
## Statements
+Finished copy beats for launch and changelog videos: the line, its layout and its motion.
+Each carries one message, such as a TL;DR, a week recap or a one-line answer. Swap in your words.
+
</ComponentGroup>
<ComponentGroup
@@ -261,6 +333,9 @@ Type built the way a motion designer builds it: trim paths on real glyph outline
## Headline reveals
+Headline-and-subhead entrances with a signature treatment: bokeh, slit-scan, comet trails, photo-filled type.
+Use one for the title beat of a feature announcement.
+
</ComponentGroup>
<ComponentGroup
@@ -295,6 +370,9 @@ Type built the way a motion designer builds it: trim paths on real glyph outline
## Kinetic posters
+Loud, poster-style type for social cuts and hype beats.
+Slams, stacks, countdowns and game-UI gags.
+
</ComponentGroup>
<ComponentGroup
@@ -324,6 +402,9 @@ Type built the way a motion designer builds it: trim paths on real glyph outline
## Word swaps
+One word or phrase turns into another in place: anagrams, typo fixes, word ladders, select and replace.
+Use them to change a claim without cutting the shot.
+
</ComponentGroup>
<ComponentGroup
@@ -353,6 +434,9 @@ Type built the way a motion designer builds it: trim paths on real glyph outline
## Letter mechanics
+Effects that work on the letters themselves.
+Kerning, weight, case, font and single glyphs move while the word stays readable.
+
</ComponentGroup>
<ComponentGroup
@@ -367,6 +451,9 @@ Type built the way a motion designer builds it: trim paths on real glyph outline
## Quotes
+Big pull quotes with an attribution line.
+For testimonials and social proof.
+
</ComponentGroup>
</CategoryIndex>
diff --git a/lib/agent-docs.test.ts b/lib/agent-docs.test.ts
index f3af0673..65b03773 100644
--- a/lib/agent-docs.test.ts
+++ b/lib/agent-docs.test.ts
@@ -74,6 +74,33 @@ describe("buildLlmsTxt with component pages", () => {
test("sections without component pages get no corpus link", () => {
expect(text).not.toContain("llms-full/getting-started.txt");
});
+
+ test("points text-animation questions at the guide only when there are text effects", () => {
+ expect(text).not.toContain("Looking for text animations?");
+ const withText = buildLlmsTxt([
+ ...PAGES,
+ {
+ slugs: ["typography", "typewriter"],
+ url: "/docs/typography/typewriter",
+ title: "Typewriter",
+ component: "typewriter",
+ },
+ {
+ slugs: ["captions", "components", "caption-karaoke"],
+ url: "/docs/captions/components/caption-karaoke",
+ title: "Karaoke",
+ component: "caption-karaoke",
+ },
+ ]);
+ const preamble = withText.slice(0, withText.indexOf("\n## "));
+ expect(preamble).toContain(
+ "Remocn has 1 animated text effects for Remotion and 1 caption styles.",
+ );
+ expect(preamble).toContain(
+ "(https://remocn.dev/docs/guides/remotion-text-animations.md)",
+ );
+ expect(preamble).toContain("(https://remocn.dev/llms-full/typography.txt)");
+ });
});
describe("buildLlmsTxt", () => {
diff --git a/lib/agent-docs.ts b/lib/agent-docs.ts
index 933bd888..abad3b2e 100644
--- a/lib/agent-docs.ts
+++ b/lib/agent-docs.ts
@@ -92,6 +92,13 @@ const ABOUT_LINKS = [
`- [Privacy & Terms](${SITE_URL}/legal): how the site handles data`,
];
+/** The answer page for "animated text effects for Remotion". */
+export const TEXT_GUIDE_PATH = "/docs/guides/remotion-text-animations";
+
+function componentCount(pages: IndexPage[] | undefined): number {
+ return pages?.filter((page) => page.component).length ?? 0;
+}
+
function sectionHeading(key: string): string {
return key
? key.replace(
@@ -142,6 +149,16 @@ export function buildLlmsTxt(pages: IndexPage[], facts?: CatalogFacts): string {
" installable component in one table with its use / avoid signal, natural length, vibe and" +
" dependencies, linking to each component's full page.",
);
+ const textEffects = componentCount(sections.get("typography"));
+ if (textEffects) {
+ const captions = componentCount(sections.get("captions"));
+ const captionNote = captions ? ` and ${captions} caption styles` : "";
+ lines.push(
+ `\nLooking for text animations? Remocn has ${textEffects} animated text effects for Remotion${captionNote}.` +
+ ` [Remotion text animations](${SITE_URL}${TEXT_GUIDE_PATH}.md) answers how to animate text in Remotion and has a picker table;` +
+ ` [/llms-full/typography.txt](${sectionCorpusUrl("typography")}) has every text component's props and usage in one file.`,
+ );
+ }
lines.push(
"\nPrefer an app to a terminal? [Remocn Studio](https://remocn.studio) is a free, open-source" +
" macOS app where the user's own coding agent (Claude Code, Codex, GitHub Copilot or Grok)" +
diff --git a/lib/docs-meta.test.ts b/lib/docs-meta.test.ts
index c28e9182..1436cb54 100644
--- a/lib/docs-meta.test.ts
+++ b/lib/docs-meta.test.ts
@@ -278,3 +278,36 @@ describe("navigation lists every page", () => {
expect(missing).toEqual([]);
});
});
+
+describe("stated text effect counts match the docs", () => {
+ const countIn = (section: string) =>
+ pages.filter(
+ (p) =>
+ p.file.startsWith(`content/docs/${section}/`) &&
+ typeof p.frontmatter.component === "string",
+ ).length;
+ const STATED = [
+ "content/docs/typography/index.mdx",
+ "content/docs/guides/remotion-text-animations.mdx",
+ ];
+
+ it("states the real number of typography and caption components", () => {
+ const text = countIn("typography");
+ const captions = countIn("captions");
+ const wrong: string[] = [];
+ for (const file of STATED) {
+ const src = readFileSync(file, "utf8");
+ for (const [, n] of src.matchAll(
+ /\b(\d+) (?:[\w-]+,? ){0,3}(?:animated text effects|text animation components)/g,
+ )) {
+ if (Number(n) !== text) wrong.push(`${file}: ${n} text, real ${text}`);
+ }
+ for (const [, n] of src.matchAll(/\b(\d+) (?:[\w-]+ )?caption styles/g)) {
+ if (Number(n) !== captions)
+ wrong.push(`${file}: ${n} captions, real ${captions}`);
+ }
+ }
+
+ expect(wrong).toEqual([]);
+ });
+});
diff --git a/next.config.ts b/next.config.ts
index eb67df46..b0c50797 100644
--- a/next.config.ts
+++ b/next.config.ts
@@ -73,6 +73,12 @@ const nextConfig: NextConfig = {
// Conventional trust-page URLs land on the matching part of /legal.
{ source: "/privacy", destination: "/legal#privacy", permanent: true },
{ source: "/terms", destination: "/legal#terms", permanent: true },
+ // Short, question-shaped URL for the text animations answer page.
+ {
+ source: "/remotion-text-animations",
+ destination: "/docs/guides/remotion-text-animations",
+ permanent: true,
+ },
// Docs folders without an index.mdx would 404; send them to their
// first page.
...Object.entries(DOCS_FOLDER_REDIRECTS).map(([source, destination]) => ({