Aurora Text

An animated gradient text component with aurora-like flowing colors.

Ship beautiful

Installation

pnpm dlx shadcn-svelte@latest add https://sv-animations.vercel.app/r/aurora-text.json

Usage

<script lang="ts">	import { AuroraText } from "#lib/components/magic/aurora-text/index.js";</script>
<h2 class="text-4xl font-bold">	Build <AuroraText>beautiful</AuroraText> interfaces</h2>

Examples

Demo

Follow Rabbit

Props

Aurora Text

An animated gradient text component with flowing aurora colors.

NameTypeDefaultDescription
childrenSnippetrequiredThe text content to display with aurora effect
classClassValue""Additional CSS classes to apply
colorsstring[]["#FF0080", "#7928CA", "#0070F3", "#38bdf8"]Array of hex color values for the gradient animation
speednumber1Animation speed multiplier (higher = faster)