Arc Border
Strands of electric current crackle around the edge of whatever it wraps, with sparks that leap off, a surge near the pointer and a jolt on click.
pixikit.com/docs/effects/arc-border
Customize
Color
Glow color
Speed1.00
Chaos0.50
Spread0.60
Thickness1.5px
Strands3
Glow0.60
Intensity0.80
Arcs1.0
Flicker0.50
Border radius24px
Offset0px
Active
Intro
Interactive
Cursor radius90px
Theme
Props
21| Name | Type | Default | Description |
|---|---|---|---|
children | ReactNode | None | Content wrapped by the electric border. |
color | string | "#7df9ff" | The current's colour; the strands burn whiter at their core. |
glowColor | string | None | The colour of the glow around the strands; the current's colour when not set. |
speed | number | 1 | How fast the current crackles and moves. |
chaos | number | 0.5 | How jagged the strands are, 0 to 2. |
spread | number | 0.6 | How far the strands wander from the edge, 0 to 2. |
thickness | number | 1.5 | Thickness of the strands, in pixels. |
strands | number | 3 | Strands running along the edge, 1 to 6. |
glow | number | 0.6 | Strength of the glow around the border. |
intensity | number | 0.8 | Overall brightness of the current. |
arcs | number | 1 | How often sparks leap off the border; 0 turns them off. |
flicker | number | 0.5 | How much the current flickers, 0 to 1. |
borderRadius | number | 24 | Corner radius of the border, in pixels; match it to the content. |
offset | number | 0 | Moves the border outward from the edge of the content, in pixels; negative moves it inward. |
active | boolean | true | Powers the border on or off; turning it on races the current around the edge again. |
intro | boolean | true | The current races around the edge from the top when the border mounts. |
interactive | boolean | true | The current surges near the pointer and a click sends a jolt around the edge. |
cursorRadius | number | 90 | Size of the area around the pointer where the current surges, in pixels. |
theme | "dark" | "light" | "dark" | Glowing light for dark pages, or crisp ink with a white core for light ones. |
className | string | None | |
style | CSSProperties | None |