Effects Fancy Stable

GlowBorder

.md

Liquid-metal ring for a container's edge: two metallic conic fields turning against each other make iridescent reflections flow along a dark chrome border, while a glint rides around it and spills a soft glow; chromatic, silver and gold presets or custom tints

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

Presets

Iridescent chrome, cool steel or warm gold.

Strength

How bright the glint and its glow are.

Custom Colors

One colour tints the metal's reflections.

Multi-Color Gradient

Border Width

Adjust the ring's thickness.

Card Example

Props

PropTypeDefaultDescription
preset "chromatic" | "silver" | "gold""chromatic"Metal palette: iridescent chrome, cool steel or warm gold
color string | string[]-Custom tints for the metal's reflections, woven with neutral metal tones; overrides preset
strength number0.8Intensity of the glint and its glow, 0 to 1
borderRadius number10Border radius in pixels; the ring also inherits its parent's radius
borderWidth number1.5Width of the metal ring in pixels
duration number10Length of one flow cycle of the metal in seconds; the glint laps in 0.4x that
class string-Additional classes on the overlay