Spelte

Open Github

Shimmer Text

Text with animated shimmer highlight effect.

Thinking longer for a better answer

Installation

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

Examples

Color

Loading interface

Usage

<script>
	import ShimmerText from '$registry/spelte/shimmer-text.svelte';
</script>
 
<ShimmerText>Shimmering text</ShimmerText>

Props

PropTypeDefaultDescription
variant"default" | "secondary" | "destructive" | "red" | "blue" | "green" | ..."default"Text color variant
durationnumber1.5Shimmer animation duration (seconds)
delaynumber1.5Delay before animation starts (seconds)
classstringAdditional CSS classes