Animated Shiny Text

A light glare effect which pans across text making it appear as if it is shimmering.

✨ Introducing Magic UI

Installation

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

Usage

<script lang="ts">	import { AnimatedShinyText } from "#lib/components/magic/animated-shiny-text/index.js";</script>
<AnimatedShinyText>Shiny text</AnimatedShinyText>

Examples

A real documentation link with a narrow shimmer and a visible keyboard focus state.

Display Text

A wider highlight across a short heading with enough contrast to see the sweep.

collected works

Orange Accent

Apply a narrow shimmer to an inline link without adding a badge or container.

Props

Animated Shiny Text

A text component with a light glare shimmer effect.

NameTypeDefaultDescription
shimmerWidthnumber100The width of the shimmer effect in pixels
classClassValue""Additional CSS classes to apply
durationnumber8The duration of the shimmer animation in seconds
childrenstring | Svelte snippetThe text content to display with the shimmer effect