Shader Text Reveal
A short headline revealed word by word through a flashy WebGL shader material (magenta-violet field with halftone texture) that then settles into clean white text. A free, MIT-licensed Remotion text animation.
In Remotion, Shader Text Reveal shows a short headline one word at a time: each word appears filled with a moving WebGL shader material (a magenta-violet field with halftone texture), settles into clean white type, and is cleared by a dark diagonal wave before the next word. The last word stays.
$ pnpm dlx shadcn@latest add @remocn/shader-text-revealHow to reveal a headline word by word through a shader in Remotion
A headline revealed word by word through a flashy shader material that settles into white text is one component. You do not need @remotion/three, React Three Fiber or a custom text material:
npx shadcn@latest add @remocn/shader-text-revealtextis split on spaces; use newlines to keep phrases together.wordDurationsets frames per word (30 by default, at least 12).- The component draws the text to a canvas texture and composites it in its own WebGL2 pass, with the shader clock driven by Remotion frames, so seeking and rendering are deterministic.
intensityscales the material and refraction (0 gives plain white letters). The colors are part of the GLSL; there is no palette prop, so edit the copied file to change them.- The background is transparent: put it over black like the preview, or over other layers.
For a quiet entrance use Soft Blur In; for words that morph into each other use Kinetic Morph Text.
Good to know
- Length: 48 frames of motion at 30 fps (96 at 60 fps) for the default two words; each extra word adds
wordDuration. That is the minimum for itsSequence; add your own hold on top. The component's own props counted in frames stay in 30 fps frames at any frame rate, see Frame rate. - WebGL2 is required, and shader or font errors fail the render. These docs do not list specific Remotion GL renderer flags; if your render machine has no GPU, check Remotion's own docs on the
--gloption.
Usage
The original @remocn OpenShaders shader from the site's hero fills the letters, including its magenta-violet field and halftone texture. A reveal exposes the material, then leaves clean white type. A diagonal dark wave removes the word before the next one appears. The final word stays visible. The hero field and halftone GLSL are included unchanged; Remotion drives their clock and a separate compositing pass applies the text shape and timing.
import { AbsoluteFill } from "remotion";
import { ShaderTextReveal } from "@/components/remocn/shader-text-reveal";
export const Headline = () => (
<AbsoluteFill style={{ background: "#000" }}>
<ShaderTextReveal text="Your product" wordDuration={30} />
</AbsoluteFill>
);The default shows Your during the first second and product during the
second. Give a 60 fps composition at least 120 frames; 150 frames includes a
short final hold. Animation timing is measured in 30 fps frames. For N words,
allocate at least (N - 1) * wordDuration + 0.6 * wordDuration of them, twice
that at 60 fps, then add any hold you need.
Space-separated text plays word by word. Use newlines to keep phrases together:
text={"Your product\nOne clear story"}. Blank lines are ignored.
Props
| Prop | Type | Default |
|---|---|---|
| text | string"Your product" Words, or newline-separated phrases, shown in sequence. | |
| fontSize | number400 Maximum font size in composition pixels. Text automatically fits within 72% of the frame width and a font-size cap of 58% of its height. | |
| fontFamily | string"Arial, sans-serif" Canvas font family. Load custom font faces in your composition; rendering waits for the selected font. | |
| fontWeight | number500 Font weight. | |
| wordDuration | number30 Frames per word, rounded and clamped to at least 12. The final word remains after its entrance. | |
| intensity | number1 Original hero material and subtle refraction; clamped to 0–1. At 0, the reveal uses white letters. | |
- textstring
Words, or newline-separated phrases, shown in sequence.
Default
"Your product" - fontSizenumber
Maximum font size in composition pixels. Text automatically fits within 72% of the frame width and a font-size cap of 58% of its height.
Default
400 - fontFamilystring
Canvas font family. Load custom font faces in your composition; rendering waits for the selected font.
Default
"Arial, sans-serif" - fontWeightnumber
Font weight.
Default
500 - wordDurationnumber
Frames per word, rounded and clamped to at least 12. The final word remains after its entrance.
Default
30 - intensitynumber
Original hero material and subtle refraction; clamped to 0–1. At 0, the reveal uses white letters.
Default
1
The background is transparent. A black backdrop matches the preview; the shader can also be composed over other layers. Text is rasterized once per font or content change and uploaded when the active word changes. GLSL controls the hero field, halftone texture, reveal, exit and local refraction. All timing comes from Remotion frames, so seeking is deterministic. WebGL2 is required; shader or font errors fail the render explicitly.