Account

Backgrounds

Creative

Perspective Grid

Depth behind a hero, a launch page or a game menu without competing with the words. Low contrast by default.

Install

Included with Creative: needs your API key. Initialize and log in once.

Terminal
npx @galactrex/ui add perspective-grid

Usage

Example
import { PerspectiveGrid } from "@/components/galactrex/perspective-grid";

<section className="relative overflow-hidden">
  <PerspectiveGrid />
  <h1 className="relative">Launch week</h1>
</section>

Source

Installs to components/galactrex/perspective-grid.tsx, with the shared motion primitives beside it.

Source for this component comes with its plan. Install it with the command above, or open your licensed copy here.

See plans

Props

PropTypeDefaultDescription
cellnumber48Cell size in px.
speednumber2.4Seconds per cell; 0 holds still.
anglenumber62Tilt of the floor in degrees.
opacitynumber0.35Line opacity, 0 to 1.
horizonnumber0.35Where the floor fades out, from the top.
colorstringvar(--gxui-muted)Line colour.
classNamestring—Extra classes for the outer element.

Variants

  • Moving. Glides toward the viewer.
  • Still. `speed={0}` for a static floor.

Accessibility

  • Decorative only and aria-hidden; never takes pointer events.

Motion and reduced motion

  • One transform loop per cell.
  • Stops while offscreen.
  • Reduced motion: a still floor.