Velocity X Components

Backgrounds

Spotlight Sweep

A single soft beam of light passing over a dark section with a quiet top-down vignette, like a stage spotlight crossing the back wall. One deliberate moment of motion for dark hero panels and feature reveals, not a busy texture. Pure CSS, no canvas or JS.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add spotlight-sweep

Built for astro.

Full docs for Spotlight Sweep →

Needs a licence key — subscribe here, then velocityx loginonce.

astro v1.0.1
Spotlight Sweep

Props

NameTypeRequiredDefaultDescription
color'primary' | 'accent'No'primary'
anglenumberNo110
intensitynumberNo0.3
durationnumberNo10
vignettebooleanNotrue
classstringNo''

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/spotlight-sweep/SpotlightSweep.astro

Using the Spotlight Sweep component

Install it with velocityx add spotlight-sweep. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Backgrounds.