Effects Fancy Stable

GlowingEffect

Mouse-proximity based glowing border effect with animated conic gradient

Preview

Installation

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

Usage

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

<GlowingEffect />

Examples

Basic Usage

White Variant

With Blur

Add blur to the glow.

Props

PropTypeDefaultDescription
blur number0Blur amount applied to the glow layer
inactiveZone number0.7Fraction of element radius where glow is inactive
proximity number0Extra pixel range outside element bounds where glow activates
spread number20Angular spread of the conic gradient in degrees
variant "default" | "white""default"Color variant of the glow
glow booleanfalseAlways show glow regardless of mouse position
disabled booleantrueDisable the glowing effect
movementDuration number2Duration of the angle lerp animation
borderWidth number1Border width in pixels