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 make a gleam travel over muted text
A shine that sweeps once across dim text already on screen is one component:
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 component's own props counted in frames (delay, stagger, hold) stay in 30 fps frames at any frame rate, see Frame rate. - 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}
/>
);Props7
| 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 | |
- 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