Tube Unveil
A neon tube that stutters on along one edge and lets its light spread out to reveal the content under it.
pixikit.com/docs/effects/tube-unveil
Customize
Preset
Colors2 of 10
Background color
Direction
Expand from
Trigger
Reveal delay300ms
Reveal duration2500ms
Easing
Thickness3.0px
Glow1.00
Spill1.00
Reach1.00
Intensity1.00
Feather0.15
Inset24px
Length0.90
Mirrored
Hum1.00
Flicker1.00
Interactive
Intro
Paused
Dpr2.0
Scroll threshold0.30
Props
31| Name | Type | Default | Description |
|---|---|---|---|
preset | "ultraviolet" | "glacier" | "sunset" | "motel" | "scanline" | "twin" | "lagoon" | "flamingo" | "ultraviolet" | A complete look; the color, timing and tube props follow it until you pass them. |
colors | string[] | ["#FF9FFC", "#B163E9"] | Two colors: the tube, then the light it throws. |
backgroundColor | string | "transparent" | Color of the surface under the content. |
direction | "down" | "up" | "left" | "right" | "down" | The way the light travels from the tube. |
expandFrom | "center" | "left" | "right" | "center" | Where the tube starts to light up. |
trigger | "mount" | "inView" | "manual" | "mount" | When the reveal plays; manual waits for replay() or a click. |
revealDelay | number | 0 | Wait before the reveal starts. |
revealDuration | number | 2500 | Length of the reveal. |
easing | "out" | "smooth" | "gentle" | "linear" | "out" | Easing of the reveal. |
thickness | number | 3 | Thickness of the tube. |
glow | number | 1 | Halo around the tube. |
spill | number | 1 | Light that pools on the surface under the tube. |
reach | number | 1 | How far the light reaches from the tube. |
intensity | number | 1 | Brightness of the tube and its light. |
feather | number | 0.15 | Softness of the edge of the reveal. |
inset | number | 24 | Distance of the tube from its edge. |
length | number | 0.9 | Length of the tube as a fraction of the edge. |
mirrored | boolean | false | Adds a second tube on the opposite edge. |
hum | number | 1 | Faint, steady wavering of the light. |
flicker | number | 1 | How much the tube stutters while it lights up. |
interactive | boolean | true | A click re-ignites the tube: the light cuts out, stutters back on and the reveal plays again. Clicks on links and buttons in the content are ignored. |
intro | boolean | true | Plays the reveal; when off the content shows at once. |
paused | boolean | false | Freezes the animation. |
dpr | number | 2 | Upper limit for the device pixel ratio. |
scrollThreshold | number | 0.3 | Share of the component that must be visible for the inView trigger. |
onStart | () => void | None | Called when a reveal starts. |
onComplete | () => void | None | Called when a reveal has finished. |
ref | Ref<TubeUnveilHandle> | None | Gives replay(). |
className | string | None | Classes for the root element; give it a height. |
style | CSSProperties | None | Inline styles for the root element. |
children | ReactNode | None | Content layered above the effect. |