Skip to content
PixiKit

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
NameTypeDefaultDescription
childrenReactNodeNoneContent wrapped by the electric border.
colorstring"#7df9ff"The current's colour; the strands burn whiter at their core.
glowColorstringNoneThe colour of the glow around the strands; the current's colour when not set.
speednumber1How fast the current crackles and moves.
chaosnumber0.5How jagged the strands are, 0 to 2.
spreadnumber0.6How far the strands wander from the edge, 0 to 2.
thicknessnumber1.5Thickness of the strands, in pixels.
strandsnumber3Strands running along the edge, 1 to 6.
glownumber0.6Strength of the glow around the border.
intensitynumber0.8Overall brightness of the current.
arcsnumber1How often sparks leap off the border; 0 turns them off.
flickernumber0.5How much the current flickers, 0 to 1.
borderRadiusnumber24Corner radius of the border, in pixels; match it to the content.
offsetnumber0Moves the border outward from the edge of the content, in pixels; negative moves it inward.
activebooleantruePowers the border on or off; turning it on races the current around the edge again.
introbooleantrueThe current races around the edge from the top when the border mounts.
interactivebooleantrueThe current surges near the pointer and a click sends a jolt around the edge.
cursorRadiusnumber90Size 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.
classNamestringNone
styleCSSPropertiesNone

Related