Skip to content
PixiKit

Tube Flicker

A headline that strikes on like a neon sign: unlit outlines stutter, flash and settle into lit letters, a moving pointer makes them flicker, and a click power-cycles the sign from that point.

pixikit.com/docs/effects/tube-flicker

Customize

Preset
Color
Glow color
Unlit
Outline width1.0px
Outline opacity0.28
Glow0.00
Glow size1.00
Flash0.30
Flickers3
Speed1.00
Stagger0.045s
Delay0.15s
Order
Trigger
Interference1.00
Interference radius90px
Click cycle
Instability0.30
Loop
Loop delay6.0s
Seed0
Paused
Font size88px
Font weight

Props

31
NameTypeDefaultDescription
preset"signal" | "neon" | "tungsten" | "ice" | "mono" | "ink" | "violet"NoneA named look that sets several props at once. A prop you pass yourself wins over it.
textstring"Open to possibility"The headline.
as"span" | "div" | "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6""span"The element the headline renders as.
colorstring"currentColor"The colour of a lit letter.
glowColorstring"#8B5CF6"The colour of the glow around lit letters.
unlit"outline" | "dim" | "none""outline"How a letter looks before it lights: an outline, a dim fill, or nothing.
outlineWidthnumber1The width of the unlit outline, in pixels.
outlineOpacitynumber0.28The opacity of an unlit letter.
glownumber0.6The strength of the steady glow, 0 for none.
glowSizenumber1The reach of the glow.
flashnumber1How bright the extra burst is each time a letter strikes.
flickersnumber3About how many times a letter stutters before it stays on.
speednumber1The pace of the whole sequence.
staggernumber0.045The delay between one letter and the next, in seconds.
delaynumber0.15The wait before the first letter strikes, in seconds.
order"random" | "start" | "center" | "end""random"The order letters light in.
trigger"view" | "mount" | "hover" | "manual""view"When the sign powers on: in view, on mount, while hovered, or only through the ref.
interferencenumber1How easily a moving pointer makes the lit letters it passes stutter. 0 turns it off.
interferenceRadiusnumber90The reach of the pointer's disturbance, in pixels.
clickCyclebooleantrueClicking power-cycles the sign from the click point.
instabilitynumber0.3How often lit letters stutter on their own.
loopbooleanfalsePower-cycles the sign again and again.
loopDelaynumber6The time between loops, in seconds.
seednumber0Fixes the flicker pattern. 0 picks a new one each time.
pausedbooleanfalseFreezes the sign as it is.
fontSizestring | number"clamp(2.75rem, 8vw, 5.5rem)"The font size.
fontWeightnumber600The font weight.
onComplete() => voidNoneCalled when every letter is lit.
refRef<TubeFlickerHandle>NoneGives ignite, cycle and powerDown.
classNamestringNone
styleCSSPropertiesNone

Related