ShineBorder

Add an animated gradient shine to cards, buttons, and panels with the customizable Shine Border component for Svelte 5.

Login

Enter your credentials to access your account

Installation

pnpm dlx shadcn-svelte@latest add https://sv-animations.vercel.app/r/shine-border.json

Usage

<script lang="ts">	import { ShineBorder } from "#lib/components/magic/shine-border/index.js";</script>
<div class="relative overflow-hidden rounded-xl border p-8">	Shine border	<ShineBorder /></div>

Examples

Monotone

A responsive card up to 28rem wide with a theme-aware shine border.

Login

Enter your credentials to access your account

Props

Shine Border

A component for ShineBorder.

NameTypeDefaultDescription
classClassValue""Additional CSS classes to apply
borderWidthnumber2Width of the border
durationnumber300Duration of the shine animation in milliseconds
shineColorstring | string[]""Color(s) of the shine effect