Skip to content
PixiKit

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
NameTypeDefaultDescription
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.
colorsstring[]["#FF9FFC", "#B163E9"]Two colors: the tube, then the light it throws.
backgroundColorstring"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.
revealDelaynumber0Wait before the reveal starts.
revealDurationnumber2500Length of the reveal.
easing"out" | "smooth" | "gentle" | "linear""out"Easing of the reveal.
thicknessnumber3Thickness of the tube.
glownumber1Halo around the tube.
spillnumber1Light that pools on the surface under the tube.
reachnumber1How far the light reaches from the tube.
intensitynumber1Brightness of the tube and its light.
feathernumber0.15Softness of the edge of the reveal.
insetnumber24Distance of the tube from its edge.
lengthnumber0.9Length of the tube as a fraction of the edge.
mirroredbooleanfalseAdds a second tube on the opposite edge.
humnumber1Faint, steady wavering of the light.
flickernumber1How much the tube stutters while it lights up.
interactivebooleantrueA 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.
introbooleantruePlays the reveal; when off the content shows at once.
pausedbooleanfalseFreezes the animation.
dprnumber2Upper limit for the device pixel ratio.
scrollThresholdnumber0.3Share of the component that must be visible for the inView trigger.
onStart() => voidNoneCalled when a reveal starts.
onComplete() => voidNoneCalled when a reveal has finished.
refRef<TubeUnveilHandle>NoneGives replay().
classNamestringNoneClasses for the root element; give it a height.
styleCSSPropertiesNoneInline styles for the root element.
childrenReactNodeNoneContent layered above the effect.

Related