Shadow Sweep Text
A short statement appears through a heavy dark shadow instead of fading: one soft shadow sweep uncovers the line while it drifts up, a second sweep covers it again. A free, MIT-licensed Remotion text animation.
In Remotion, Shadow Sweep Text makes a short line appear through a heavy dark shadow rather than a fade: one soft shadow sweep uncovers it while it drifts up, and a matching sweep covers it again. Use it for a moody, dramatic title beat on a dark field.
$ pnpm dlx shadcn@latest add @remocn/shadow-sweep-textHow to make text emerge from darkness with a shadow sweep in Remotion
Text that emerges from darkness as a dense dark shadow sweeps across to uncover it, then sweeps back to cover it again, is one component. You do not need to hand-build a mask-image: linear-gradient(...) wipe with interpolate(), or a noise field from @remotion/noise:
npx shadcn@latest add @remocn/shadow-sweep-text- The text stays at full opacity. A directional mask plus a soft, blurred shadow field travels across it to uncover it (frames 0–23), holds three frames, then returns to cover it by frame 36. Meanwhile the line eases up by
riseand left bydriftLeftpixels. shadowColor,backgroundColorandshadowSoftnesstune the look; a lower softness reads as a hard wipe.- The component paints its own dark background, because the shadow has to match it. There is no transparent mode: to composite over footage, edit the copied file, or use Mask Reveal Up for a one-way reveal.
Good to know
- Length: 37 frames of motion at 30 fps (74 at 60 fps) with the default props. The Usage example below is a 60 fps composition, so its
durationInFrames={74}is the same 37 frames doubled. Add your own hold on top if you need one. The component's own props counted in frames stay in 30 fps frames at any frame rate, see Frame rate. - Font: Arial / Helvetica, set inline; there is no
fontFamilyprop, so change it in the copied file.
Usage
ShadowSweepText keeps the text at constant opacity for the complete cycle.
Frames 0–23 move a directional mask and a broad Gaussian shadow field to the
right, uncovering the line without exposing a rectangular layer. After a
three-frame hold, the same paired motion returns from the left and covers the
line by frame 36. Independently, the text eases 96 pixels up and 16 pixels left
across the shot.
The component paints its own near-black violet background. That field and the slightly darker shadow are part of the animation rather than preview chrome, so the installed result matches the customizer without requiring a separate backdrop.
// src/Root.tsx
import { Composition } from "remotion";
import { ShadowSweepText } from "@/components/remocn/shadow-sweep-text";
const ShadowSweepTextScene = () => (
<ShadowSweepText text="are abandoned" />
);
export const RemotionRoot = () => (
<Composition
id="ShadowSweepText"
component={ShadowSweepTextScene}
durationInFrames={74}
fps={60}
width={1280}
height={720}
/>
);Tuning The Shadow
backgroundColor fills the canvas. By default, shadowColor inherits that
same color, so the radial field is visible over the letters without becoming a
separate black shape on the blue field. It still fades to transparency
horizontally and vertically. Reducing shadowSoftness makes the reveal feel
like a hard wipe, while increasing it leaves more of each glyph partially
covered.
<ShadowSweepText
text="built for motion"
backgroundColor="#030012"
shadowColor="#030012"
shadowSoftness={130}
rise={96}
driftLeft={16}
/>Props11
| Prop | Type | Default |
|---|---|---|
| textrequired | string— Single-line copy rendered beneath both shadow layers | |
| fontSize | number96 Font size in pixels | |
| color | string"#aaa6b5" Text color | |
| fontWeight | number700 CSS font-weight | |
| backgroundColor | string"#030012" Canvas color | |
| shadowColor | stringbackgroundColor Color at the center of the moving Gaussian shadow; inherits the background by default | |
| shadowSoftness | number130 Approximate width of each soft shadow edge in pixels | |
| rise | number96 Vertical travel from the starting position in pixels | |
| driftLeft | number16 Horizontal travel toward the left in pixels | |
| speed | number1 Playback speed multiplier | |
| className | string— Optional className passed to the full-frame root | |
- textrequiredstring
Single-line copy rendered beneath both shadow layers
- fontSizenumber
Font size in pixels
Default
96 - colorstring
Text color
Default
"#aaa6b5" - fontWeightnumber
CSS font-weight
Default
700 - backgroundColorstring
Canvas color
Default
"#030012" - shadowColorstring
Color at the center of the moving Gaussian shadow; inherits the background by default
Default
backgroundColor - shadowSoftnessnumber
Approximate width of each soft shadow edge in pixels
Default
130 - risenumber
Vertical travel from the starting position in pixels
Default
96 - driftLeftnumber
Horizontal travel toward the left in pixels
Default
16 - speednumber
Playback speed multiplier
Default
1 - classNamestring
Optional className passed to the full-frame root