Skip to content

NewMCP server for your coding agent. Set it up ›

Nexus UI
Get Pro

Beam Sweep Field, animated React component

A dark hero backdrop where columns of light sweep across a fine grid and light up the lines they pass. Move over it and the nearest beam swings onto the pointer, leans into the move and overshoots before drifting back into its sweep.

  • Free
  • Background Effects
  • Hover
  • Spring

Like Beam Sweep Field? 256 more are in Pro.

Pro unlocks all 256 Pro components, every template and block, and everything we release next. Beam Sweep Field stays free.

Play with it

Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.

Now in public beta

Observability that sees every request.

Trace a slow page to the line of code behind it, without adding a single SDK.

Move across the field. The nearest beam follows.

Props

PropTypeDefaultWhat it does
children—Content over the field. Defaults to a short launch hero.
beams3Number of sweeping light columns, 1 to 5.
color"#67e8f9"Beam and lit-grid colour. Any CSS colour.
speed11Seconds for one sweep across the field.
hint"Move across the field. The nearest beam follows."Caption at the bottom edge. Pass an empty string to hide it.
autoplayfalseSwings a beam onto a few points until someone moves over the field.
className—Extra classes on the section.

Add it to your project

  1. 1

    Set up your project once

    You need a Next.js project with Tailwind CSS and the @/ import alias. In its root folder, run this once. It creates components.json and the cn() helper in src/lib/utils.ts:

    npx shadcn@latest init -d

    Starting from nothing? The Quick Start walks through the whole thing.

  2. 2

    Connect the registry

    Run this once per project. It writes the Nexus UI entry into components.json for you:

    npx shadcn@latest registry add "@nexus-labs=https://www.nexus-ui.com/api/registry/{name}"

    Type it exactly as shown. {name} is filled in by the CLI with the component you ask for, so you never replace it.

  1. 3

    Add the component

    Run this from your project root. It adds the component, the helpers it imports and its npm packages.

    npx shadcn@latest add @nexus-labs/beam-sweep-field
  2. 4

    Check what was added

    With a project made as in the Quick Start (a src/ folder), these files land in it:

    components/
    beam-sweep-field/
    beam-sweep-field.tsx
    index.ts
  3. 5

    Copying by hand? Skip the registry

    Instead of steps 2 and 3 you can copy the files yourself, with no registry and no API key. Step 1 still applies, so that cn() exists. Install the packages:

    npm install framer-motion

    Then show the source and create each file at the path it gives:

  4. 6

    Use it in a page

    Installing only adds the files. Import the component in a page and render it. The Usage tab on the preview shows a fuller example with props:

    // src/app/page.tsx
    import { BeamField } from "@/components/beam-sweep-field";
    
    export default function Page() {
      return (
        <main>
          <BeamField />
        </main>
      );
    }

Like Beam Sweep Field? 256 more are in Pro.

Pro unlocks all 256 Pro components, every template and block, and everything we release next. Beam Sweep Field stays free.

About Beam Sweep Field

The Beam Sweep Field is a slow-moving light column animation for cinematic section backgrounds. The beam travels across the section at a configurable angle and speed, creating atmospheric depth behind static content with zero JavaScript overhead — the motion runs purely via CSS animation. It works as a backdrop behind hero text, feature sections, or CTA blocks. The sweep color and opacity are configurable to fit dark and light themes.

Good for

  • Hero section cinematic backgrounds
  • CTA section backdrop effects
  • Feature panel background animations
  • Premium product section atmospherics

Beam Sweep Field questions

How do I install Beam Sweep Field?

Run `npx shadcn@latest add @nexus-labs/beam-sweep-field`. It installs framer-motion and lucide-react.

Which props control the beams?

`beams` sets how many light columns sweep (default 3), `color` sets their color (default `#67e8f9`), and `speed` sets the seconds per sweep (default 11).

How do I put my own content on it?

Pass anything as `children` and it replaces the built-in sample hero. Use `className` to change the section's height or corner radius.

Does it use canvas or WebGL?

No. The grid and glow are CSS gradients and each beam is a Framer Motion div. With prefers-reduced-motion on, the beams stay still.