Effects Fancy Stable

NeonBorder

Dual-color neon glow border effect with optional rotation animation

Preview

Installation

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

Usage

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

<NeonBorder />

Examples

Basic Usage

Animation Types

Different animation styles.

Custom Colors

Speed Variations

Interactive Playground

Props

PropTypeDefaultDescription
color1 string"#0496ff"First neon color
color2 string"#ff0a54"Second neon color
animationType "none" | "half" | "full""half"Animation type: none (static), half (50% coverage), full (100% coverage)
duration number6Animation duration in seconds

Slots

SlotDescription
childrenContent to display inside the neon border container