Vibe UI
Initializing Vibe UI System...

Animated Gradient Text

A vibrant background gradient animation that flows smoothly through the text path.

Preview

✨ Introducing Vibe UI Gradient

Installation

pnpm dlx vibe-ui-kit@latest add animated-gradient-text

Global Configuration (CSS Styles)

Ensure the following CSS keyframes and animations are configured in your global theme file:

@theme {
  --animate-gradient: gradient 8s linear infinite;

  @keyframes gradient {
    to {
      background-position: var(--bg-size, 300%) 0;
    }
  }
}

Usage

import { AnimatedGradientText } from "@/components/ui/animated-gradient-text"
<AnimatedGradientText speed={1.5} colorFrom="#3b82f6" colorTo="#10b981">
  Flowing Gradient Text
</AnimatedGradientText>

Props

PropTypeDefaultDescription
childrenReactNode""Text content to apply flowing gradient fills
speednumber1Speed factor multiplier of gradient cycle shifts
colorFromstring"#ffaa40"Initial hex value representing start of linear gradient
colorTostring"#9c40ff"Secondary hex value representing middle of linear gradient
classNamestring?""Additional classes for the container

This AnimatedGradientText component creates a flowing gradient visual effect mapped to typography.

Contributors

JS
Jenish Sabhadiya

Theme Customizer

8px
@theme {
  --radius: 0.5rem;
  --glass-blur: 8px;
}
Changes apply instantly to this documentation workspace.
Animated Gradient Text | Vibe UI