Getting Started
Components
Special Effects
Animations
Text Animations
Backgrounds
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
Copy the Source Code
Copy and paste the following code into your project:
animated-shiny-text.svelte
index.ts
Add Tailwind CSS
Add the following to your routes/layout.css file:
routes/layout.css
Folder Structure
Folder Structure
Props
AnimatedShinyText
A text component with a light glare shimmer effect.
| Name | Type | Default | Description |
|---|---|---|---|
shimmerWidth | number | 100 | The width of the shimmer effect in pixels |
class | string | "" | Additional CSS classes to apply |
duration | number | 8 | The duration of the shimmer animation in seconds |
children | string | Svelte snippet | | The text content to display with the shimmer effect |