Velocity X Components

Backgrounds

Grain Overlay

Film-grain texture layer that kills gradient banding and flat-colour plasticky sections. Zero JS, zero canvas — an SVG noise filter with a gentle four-step flicker.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add grain-overlay

Built for astro.

Full docs for Grain Overlay →

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

astro v1.0.1
Grain Overlay

Props

NameTypeRequiredDefaultDescription
opacitynumberNo0.06
speednumberNo0.5
staticbooleanNofalse
classstringNo''

File this creates

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

text
components/velocity/grain-overlay/GrainOverlay.astro

Using the Grain Overlay component

Install it with velocityx add grain-overlay. 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.