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| Name | Type | Default | Description |
|---|---|---|---|
preset | "signal" | "neon" | "tungsten" | "ice" | "mono" | "ink" | "violet" | None | A named look that sets several props at once. A prop you pass yourself wins over it. |
text | string | "Open to possibility" | The headline. |
as | "span" | "div" | "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "span" | The element the headline renders as. |
color | string | "currentColor" | The colour of a lit letter. |
glowColor | string | "#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. |
outlineWidth | number | 1 | The width of the unlit outline, in pixels. |
outlineOpacity | number | 0.28 | The opacity of an unlit letter. |
glow | number | 0.6 | The strength of the steady glow, 0 for none. |
glowSize | number | 1 | The reach of the glow. |
flash | number | 1 | How bright the extra burst is each time a letter strikes. |
flickers | number | 3 | About how many times a letter stutters before it stays on. |
speed | number | 1 | The pace of the whole sequence. |
stagger | number | 0.045 | The delay between one letter and the next, in seconds. |
delay | number | 0.15 | The 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. |
interference | number | 1 | How easily a moving pointer makes the lit letters it passes stutter. 0 turns it off. |
interferenceRadius | number | 90 | The reach of the pointer's disturbance, in pixels. |
clickCycle | boolean | true | Clicking power-cycles the sign from the click point. |
instability | number | 0.3 | How often lit letters stutter on their own. |
loop | boolean | false | Power-cycles the sign again and again. |
loopDelay | number | 6 | The time between loops, in seconds. |
seed | number | 0 | Fixes the flicker pattern. 0 picks a new one each time. |
paused | boolean | false | Freezes the sign as it is. |
fontSize | string | number | "clamp(2.75rem, 8vw, 5.5rem)" | The font size. |
fontWeight | number | 600 | The font weight. |
onComplete | () => void | None | Called when every letter is lit. |
ref | Ref<TubeFlickerHandle> | None | Gives ignite, cycle and powerDown. |
className | string | None | |
style | CSSProperties | None |