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| Name | Type | Default | Description |
|---|---|---|---|
color | string | "#7c3aed" | The band's colour. |
duration | number | 1.8 | Seconds for one sweep. |
delay | number | 0.8 | Seconds the band rests between two sweeps. |
bandSize | number | 40 | The band's size, in % of the wrapper's height (or width when it sweeps sideways). |
opacity | number | 0.9 | How strong the band is, from 0 to 1. |
blur | number | 12 | How 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. |
width | number | None | The widest it grows, in pixels; it never overflows a narrower container. Left out, it sizes to its content. |
height | number | None | Its minimum height in pixels. Left out, it is as tall as its content. |
lines | string[] | ["$ npm run build", "✓ compiled", "✓ pages ready", "done in 1.2s"] | The terminal lines shown when there are no children: `$ ` starts a command, `✓ ` a check. |
className | string | None | |
children | ReactNode | None |