Gradient Wave Text

Apple-style animated gradient text with wave effect.

motion-sv
Just ship things.

Installation

pnpm dlx shadcn-svelte@latest add https://sv-animations.vercel.app/s/gradient-wave-text.json

Usage

<script lang="ts">	import { GradientWaveText } from "#lib/components/spell/gradient-wave-text/index.js";</script>
<GradientWaveText>Just ship things.</GradientWaveText>

Examples

Linear Bands

Signals move in deliberate lines

Props

NameTypeDefaultDescription
childrenSnippetrequiredThe text content rendered inside the animated gradient mask.
align"left" | "center" | "right""center"Controls content alignment and text alignment for the rendered headline.
speednumber1Controls how quickly the gradient index advances through the color bands.
pausedbooleanfalsePauses gradient movement while keeping the current visual state rendered.
delaynumber0Adds a delay in seconds before the gradient animation begins.
repeatbooleanfalseWhen true, loops the gradient wave indefinitely instead of stopping after one pass.
triggerOnViewbooleanfalseWaits to animate until the component enters the viewport.
oncebooleantrueWhen using triggerOnView, controls whether the animation runs only on first entry.
radialbooleantrueUses a radial gradient when true and a linear gradient when false.
bottomOffsetnumber20Controls how much extra bottom padding is applied to preserve the gradient bloom.
bandGapnumber4Sets the spacing between each gradient color band.
bandCountnumber8Controls how many color bands are rendered into the gradient.
customColorsstring[]Overrides the default gradient palette with a custom color list.
ariaLabelstringProvides an accessible label when the rendered content should be announced as an image-like effect.
rolestringOverrides the computed root role if you need explicit semantics.
classClassValueCustom classes applied to the root wrapper.
stylestringInline styles merged onto the root wrapper.