Modus UI

Shimmer Text

Web (React)

Animated text that shimmers with a flowing gradient effect.

Animated text that shimmers with a flowing gradient effect. Great for highlighting new features, primary calls-to-action, or hero section headlines.

✨ Introducing Modus UI v2.0

Build Interfaces
Faster Than Ever

Installation

CLI

npx @modus-ui/cli add shimmer-text

Manual

  1. Copy the code from the component tab.
  2. Create a file at components/ui/shimmer-text.tsx.
  3. Paste the code.

Usage

tsx
import { ShimmerText } from "@/components/ui/shimmer-text";

export default function Example() {
  return (
    <h1>
      <ShimmerText text="Build Interfaces Faster" />
    </h1>
  );
}

Props

PropTypeDefaultDescription
textstring-The text to display and animate.
baseColorstring"hsl(var(--muted-foreground))"The main text color.
shimmerColorstring"hsl(var(--foreground))"The color of the shimmer gradient.
speednumber3Animation duration in seconds.
spreadnumber120The angle of the linear gradient.

Comments

  • No comments yet.