Animated Gradient Text

An animated gradient background which transitions between colors for text.

🎉
Introducing Magic UI

Installation

pnpm dlx shadcn-svelte@latest add /r/animated-gradient-text.json

Usage

<script lang="ts">	import { AnimatedGradientText } from "#lib/components/magic/animated-gradient-text/index.js";</script>
<AnimatedGradientText>Animated gradient text</AnimatedGradientText>

Examples

Custom Speed

Fast Gradient

Props

Animated Gradient Text

A text component with animated gradient background effect.

NameTypeDefaultDescription
speednumber1Animation speed multiplier for the gradient movement
colorFromstring#ffaa40Starting color of the gradient
colorTostring#9c40ffEnding color of the gradient
classClassValue""Additional CSS classes to apply