Hero Grid
This article documents
Hero Grid Pro
A hero sitting on a fine technical grid. The grid drifts continuously and brightens in a pool around the cursor; chips float, dots pulse, and a logo marquee runs along the bottom.
Requires: GSAP core only. No ScrollTrigger — nothing here is scroll-driven.
What you replace#
| In the structure panel | What to do |
|---|---|
| Eyebrow, title, lede, buttons | Your words |
| The wordmarks in the marquee | Your logos |
Wordmark row 2 (loop copy, do not edit) | Leave it. Second half of the marquee loop. |
Floating chips (decorative, hidden under 992px) | Your labels, or delete them. aria-hidden, and they do not show below 992px anyway. |
Grid background, Bottom glow, Fade left, Fade right | Leave them. All aria-hidden, all pure decoration, all part of how the grid reads. |
There are no photographs in this template — nothing to import, nothing pointing at our server.
Classes#
Root marker bxc-hero-grid, plus the bsfy-hero-grid global class.
The script reads .bxg__card, .bxg__grid, .bxg__layer.is-active, .bxg__float, .bxg__pulse, .bxg__row and .bxg__reveal.
bxg__reveal is the one to know: anything carrying it animates in, in DOM order. Put it on an element you add and it joins the entrance sequence with no other setup.
Tuning#
On the root section, under Attributes:
| Attribute | Shipped | What it does |
|---|---|---|
data-duration | 0.85 | Entrance duration |
data-ease | power2.out | Entrance easing |
data-stagger | 0.08 | Gap between revealed elements |
data-reveal-distance | 28 | How far, in pixels, a revealed element travels |
data-delay | 0.1 | How long the entrance waits before it starts |
data-spotlight-duration | 0.3 | How fast the cursor pool follows |
data-spotlight-ease | power3.out | Easing of the pool |
data-spotlight-rest | -200 | Where the pool parks before the pointer has moved, in pixels. Well off the card, so it is not visible until you hover. |
data-drift-duration | 2.7 | One step of the grid drift. 0 stops the drift. |
data-float-distance | 14 | Chip float amplitude |
data-float-duration | 3.2 | Chip float period |
data-pulse-duration | 1.8 | Dot pulse period |
data-pulse-from | 0.4 | Dot opacity at the dimmest point of the pulse |
data-pulse-to | 1 | Dot opacity at the brightest point |
data-marquee-duration | 40 | One full pass of the logo marquee |
Four of these are not set on the section as shipped: data-delay, data-spotlight-rest, data-pulse-from and data-pulse-to. The values shown for them are the script's own defaults; add the attribute to change one.
The section also carries data-bx-fit, which our own preview uses to fit the hero to one screen. It has no effect on your site and is safe to leave or remove.
Restyling#
Padding, background and the headline typography are element settings in the panel.
The grid itself is entirely custom properties:
| Property | Default | What it does |
|---|---|---|
--bxg-cell | 48px | Grid square size |
--bxg-line | rgba(23,28,61,.55) | Grid line colour |
--bxg-ambient | .1 | Grid opacity away from the cursor |
--bxg-active | .45 | Grid opacity inside the pool |
--bxg-radius | 400px | Pool size |
--bxg-glow, --bxg-glow-mid | blues | The pool's colour and its falloff |
--bxg-fade | 0% | How far up the grid fades out at the bottom |
--bxg-dx, --bxg-dy, --bxg-mx and --bxg-my are written by the script as the cursor moves. Do not set them by hand.
Without JavaScript#
The full hero, on a static grid at its ambient brightness. No cursor pool, no drift, no marquee — every word and button still there and usable.