Effects Fancy Stable

PulseBeam

Breathing border glow that wraps any card: colour blobs drift along the edges as a crisp 1px ring, a feathered inner glow and a blurred bloom, with slow hue rotation, fade in/out on an active flag, four palettes and an outside halo variant

Preview

Installation

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

Usage

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

<PulseBeam />

Examples

Basic Usage

Working State

Toggle `active` to fade the glow in and out around a task list.

Outside Variant

Ring plus a blurred halo behind the card.

Palettes

Colorful, mono, ocean and sunset.

Pill Button

Outside halo on a small control.

Interactive Playground

Props

PropTypeDefaultDescription
active booleantrueShow the glow. Turning it off fades out over 500ms and stops the animation loop; turning it on fades in over 600ms
variant "inner" | "outside""inner"inner paints a 1px ring, a 28px feather and a bloom inside the box; outside keeps the ring and adds a blurred halo behind the content
palette "colorful" | "mono" | "ocean" | "sunset""colorful"Built-in nine-slot colour set. mono halves the opacities and disables hue drift
colors string[]-Up to nine CSS colours overriding the palette slots in order
strength number1Overall intensity, 0 to 1
radius number16Corner radius in px applied to the wrapper and every layer
speed number1Multiplier for the breathing and drift periods
tone "dark" | "light""dark"Opacity, brightness and saturation preset for the surface the card sits on
hueShift booleantrueSlowly rotate all hues over a 14 to 16 second cycle
brightness number-Override the preset brightness filter
saturation number-Override the preset saturation filter
onfadein () => void-Called once the fade-in has completed
onfadeout () => void-Called once the fade-out has completed and the loop has stopped
ref HTMLDivElement | nullnullBindable wrapper element
class string-Additional classes on the wrapper

Slots

SlotDescription
childrenContent the glow wraps; give it an opaque background and the same radius