Skip to content
PixiKit

Beam Pour

A beam of light that drops onto a surface, flares into a splash, runs along the top edge and spills over the corners, with lit smoke, drifting dust and a glow that follows the pointer.

pixikit.com/docs/effects/beam-pour

Customize

Beam position0.60
Surface level0.60
Color
Intensity1.80
Beam width1.50
Flare1.50
Spread1.50
Spill1.00
Fog0.20
Dust1.60
Streaks1.50
Dots1.00
Pulse1.50
Speed1.50
Seed3
Mouse interaction
Reveal radius220px
Reveal opacity0.60
Intro
Theme
Paused
Dpr

Props

25
NameTypeDefaultDescription
surfaceRefRefObject<HTMLElement | null>NoneElement the beam lands on; the light spreads along its top edge and spills over its corners.
beamPositionnumber0.6Horizontal position of the beam, from 0 at the left edge to 1 at the right edge.
surfaceLevelnumber1Where the beam lands when no surfaceRef is given, from 0 at the top to 1 at the bottom.
colorstring"#3847ff"Colour of the light; every other tone is derived from it.
intensitynumber1.8Overall brightness of the light.
beamWidthnumber1.5Thickness of the beam and its glow.
flarenumber1.5Size of the splash where the beam meets the surface.
spreadnumber1.5How far the light travels along the surface.
spillnumber1How much light pours over the corners of the surface.
fognumber0.2Amount of smoke lit up by the beam; 0 turns it off.
dustnumber1.6Amount of glittering dust flowing with the light.
streaksnumber1.5Brightness of the fine lines flowing along the splash.
dotsnumber1Strength of the fine dot texture in the glow.
pulsenumber1.5How much the splash breathes over time.
speednumber1.5Animation speed; 0 holds the light still.
seednumber3Changes the shape of the smoke.
mouseInteractionbooleantrueBrightens the light, smoke and dust softly around the pointer.
revealImagestringNoneImage revealed through the light around the pointer, such as a screenshot of your interface.
revealRadiusnumber220Radius of the reveal around the pointer, in pixels.
revealOpacitynumber0.6Strength of the revealed image; 0 hides it.
introbooleantrueDrops the beam in and lets the light run along the surface on mount.
theme"dark" | "light""dark"Use light for light page backgrounds.
pausedbooleanfalseFreezes the animation.
dprnumberNoneThe highest device pixel ratio drawn, capped at 2.
classNamestringNone

Related