Velocity X Components

Backgrounds

Scroll Depth Field

Diagonal line field whose drift and tilt are driven by actual scroll position, not a timed loop — native scroll-timeline CSS where supported, rAF fallback elsewhere. Reverses on scroll-up, freezes the instant scrolling stops.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add scroll-depth-field

Built for react. Needs react already installed as a peer dependency. An Astro-only project needs @astrojs/react wired up first — this won't run on its own in plain Astro.

Full docs for Scroll Depth Field →

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

react v1.0.1 react

Scroll Depth Field

Diagonal line field whose drift and tilt are driven by actual scroll position, not a timed loop — native scroll-timeline CSS where supported, rAF fallback elsewhere. Reverses on scroll-up, freezes the instant scrolling stops.

Preview isn't available in this repo yet — install with the CLI to view the source

File this creates

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

text
components/velocity/scroll-depth-field/ScrollDepthField.tsx

Using the Scroll Depth Field component

Install it with velocityx add scroll-depth-field. 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.