Skip to content

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

2.8 KB
Raw Blame
---
title: Shimmer Sweep
description: A bright shine travels across muted text to draw attention
component: shimmer-sweep
vibe: premium
length: 120
useWhen:
  - "Highlighting a product name or pricing tier with a refined, metallic gleam — luxury SaaS, pricing slides."
  - "The text is already visible and you want a continuous or looped attention effect rather than an entrance."
  - "The design calls for a dark background where a light sweep across dark text creates contrast without a harsh cut."
avoidWhen:
  - "You need the text to enter the scene — shimmer-sweep does not animate the text in; use `tracking-in` or `soft-blur-in` for the entrance, then layer a shimmer if needed."
  - "The brand aesthetic is casual or energetic — the metallic sweep reads as premium/luxury; use `spring-scale-in` or `staggered-fade-up` for a lighter feel."
  - "You want per-character color or gradient control — `shimmer-sweep` sweeps a single shine beam; use `rgb-glitch-text` for character-level color splitting."
askedAs:
  - "shine across muted text"
  - "metallic gleam product name"
  - "I want a bright glint to travel over dim text to draw the eye"
  - "highlight a pricing tier name with a refined shine"
  - "luxury SaaS moment where one word is spotlighted by a light pass"
  - "viewer attention should snap to a name as a glossy sweep crosses it"
---

<ComponentPreview name="shimmer-sweep" />

<InstallBlock name="shimmer-sweep" />

## Usage

```tsx
// 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={120}
    fps={30}
    width={1280}
    height={720}
  />
);
```

<PropsTable title="Props"
  rows={[
    {
      name: "text",
      type: "string",
      required: true,
      description: "The text to animate the shine across",
    },
    {
      name: "baseColor",
      type: "string",
      default: "\"#3f3f46\"",
      description: "Dim color of the text underneath the shine",
    },
    {
      name: "shineColor",
      type: "string",
      default: "\"#fafafa\"",
      description: "Color of the moving highlight gradient",
    },
    {
      name: "fontSize",
      type: "number",
      default: "96",
      description: "Font size in pixels",
    },
    {
      name: "fontWeight",
      type: "number",
      default: "700",
      description: "CSS font-weight",
    },
    {
      name: "speed",
      type: "number",
      default: "1",
      description: "Multiplier for animation speed",
    },
    {
      name: "className",
      type: "string",
      description: "Optional className passed to the shine span",
    },
  ]}
/>