Effects Fancy Stable

GlowBorder

Glowing ring that animates around a container's edge by sweeping a radial gradient's position, masked with CSS mask-composite so only the border ring is painted, supporting single or multi-color gradients

Preview

Installation

pnpm add fancy-ui-svelte
import { GlowBorder } from 'fancy-ui-svelte'

Usage

svelte
<script lang="ts">
  import { GlowBorder } from 'fancy-ui-svelte';
</script>

<GlowBorder />

Examples

Basic Usage

Custom Colors

Change glow colors.

Multi-Color Gradient

Border Width

Adjust glow thickness.

Card Example

Props

PropTypeDefaultDescription
borderRadius number10Border radius in pixels
color string | string[]"#FFF"Glow color or array of colors for gradient
borderWidth number2Border width in pixels
duration number10Animation duration in seconds