Spelte

Command Palette
Search for a command to run...

Gradient Wave Text

Apple-style animated gradient text with wave effect.

Just ship things.

Installation

pnpm dlx shadcn-svelte@latest add https://spelte.dev/r/gradient-wave-text.json

Usage

<script>
  import GradientWaveText from '$registry/spelte/gradient-wave-text.svelte';
</script>
 
<GradientWaveText class="text-3xl md:text-5xl font-medium tracking-[-.03em]">
  Just ship things.
</GradientWaveText>

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | align | "left" | "center" | "right" | "center" | Text alignment | | speed | number | 1 | Animation speed multiplier | | paused | boolean | false | Pause the animation | | delay | number | 0 | Delay before animation starts (seconds) | | repeat | boolean | false | Repeat animation infinitely | | inViewProp | boolean | false | Start when element enters viewport | | once | boolean | true | Only animate once | | radial | boolean | true | Use radial gradient (false = linear) | | bottomOffset | number | 20 | Bottom offset percentage | | bandGap | number | 4 | Gap between gradient bands | | bandCount | number | 8 | Number of gradient bands | | customColors | string[] | — | Custom color array | | ariaLabel | string | — | Accessible label for screen readers | | class | string | — | Additional CSS classes |