Skip to content
PixiKit

Scanline

A wrapper that sweeps a glowing band of light across its children, for a terminal, a screenshot or a card.

pixikit.com/docs/effects/scanline

Customize

Color
Duration1.8s
Delay0.8s
Band size40%
Opacity0.90
Blur12px
Trigger
Direction
Easing
Width560px
Height280px

Props

14
NameTypeDefaultDescription
colorstring"#7c3aed"The band's colour.
durationnumber1.8Seconds for one sweep.
delaynumber0.8Seconds the band rests between two sweeps.
bandSizenumber40The band's size, in % of the wrapper's height (or width when it sweeps sideways).
opacitynumber0.9How strong the band is, from 0 to 1.
blurnumber12How soft the band's glow is, in pixels of blur.
trigger"always" | "hover""always"Sweep all the time, or only while the pointer is over it or something inside has focus.
direction"down" | "up" | "left" | "right""down"The way the band sweeps.
easing"linear" | "ease-in-out""ease-in-out"An even pace, or slow at both ends.
widthnumberNoneThe widest it grows, in pixels; it never overflows a narrower container. Left out, it sizes to its content.
heightnumberNoneIts minimum height in pixels. Left out, it is as tall as its content.
linesstring[]["$ npm run build", "✓ compiled", "✓ pages ready", "done in 1.2s"]The terminal lines shown when there are no children: `$ ` starts a command, `✓ ` a check.
classNamestringNone
childrenReactNodeNone