Shimmer Sweep
A refined gleam travels over muted text that is already on screen, a metallic shine sweep that spotlights a product name or pricing tier. A free, MIT-licensed Remotion text animation.
In Remotion, Shimmer Sweep sends a bright gleam travelling over muted text that is already on screen. Use it to spotlight a product name or pricing tier with a refined, metallic shine.
$ pnpm dlx shadcn@latest add @remocn/shimmer-sweepHow to add a metallic shine sweeping across visible text in Remotion
A bright metallic shine sweeping once across muted text that is already visible, to highlight a product name or pricing tier, is one component. You do not need your own background-clip: text gradient animation:
npx shadcn@latest add @remocn/shimmer-sweep- The text sits in
baseColor. A second copy on top usesbackground-clip: textwith alinear-gradient(110deg, …)inshineColor, andinterpolate()moves itsbackground-position, so the gleam runs left to right at a fixed 110° angle. The angle is not a prop; edit it in the copied file. - It plays once, not on a loop: the sweep takes the first 80% of the clip, then the text holds plain. A longer
Sequencemakes a slower sweep. - There is no
delayprop. To start the shine after other content, put it in aSequencewith afrom, or passtiming={{ sweep: { start: 30, length: 60 } }}(30 fps frames) so the sweep starts later and still finishes inside the clip. - The text does not animate in. For the entrance use Tracking In or Soft Blur In first.
Good to know
- Length: 120 frames of motion at 30 fps (240 at 60 fps) with the default props. That is the minimum for its
Sequence; add your own hold on top. The Usage example below is a 60 fps composition, so the numbers it hands to Remotion (durationInFrames,Sequencelengths) are doubled. The frames intimingstay in 30 fps frames at any frame rate, see Frame rate. - Not a prop: background, sweep angle (110°) and font family. Each is one line in the copied file.
- Installs:
remotionfrom npm, plus the remocn helpersframe-rate,timeline. The shadcn CLI copies the source into your project. - Font: none is loaded. The text uses
var(--font-geist-sans)with a system sans fallback; change it in the copied file. - Background: the component paints a white full-frame background; edit the copied file for a dark one.
Usage
// src/Root.tsx
import { Composition } from "remotion";
import { ShimmerSweep } from "@/components/remocn/shimmer-sweep";
const ShimmerSweepScene = () => (
<ShimmerSweep text="Generating..." fontSize={96} />
);
export const RemotionRoot = () => (
<Composition
id="ShimmerSweep"
component={ShimmerSweepScene}
durationInFrames={240}
fps={60}
width={1280}
height={720}
/>
);Props8
| Prop | Type | Default |
|---|---|---|
| textrequired | string— The text to animate the shine across | |
| baseColor | string"#3f3f46" Dim color of the text underneath the shine | |
| shineColor | string"#fafafa" Color of the moving highlight gradient | |
| fontSize | number96 Font size in pixels | |
| fontWeight | number700 CSS font-weight | |
| speed | number1 Multiplier for animation speed | |
| className | string— Optional className passed to the shine span | |
| timing | Timing<"sweep">— Override for the shine pass: { start, length, stretch } in 30 fps frames. Use start to delay the sweep. | |
- textrequiredstring
The text to animate the shine across
- baseColorstring
Dim color of the text underneath the shine
Default
"#3f3f46" - shineColorstring
Color of the moving highlight gradient
Default
"#fafafa" - fontSizenumber
Font size in pixels
Default
96 - fontWeightnumber
CSS font-weight
Default
700 - speednumber
Multiplier for animation speed
Default
1 - classNamestring
Optional className passed to the shine span
- timingTiming<"sweep">
Override for the shine pass: { start, length, stretch } in 30 fps frames. Use start to delay the sweep.