Opens in a new tab

Hero Grid

Templates3 minutes readUpdated 1 Oct 2026

This article documents

Hero Grid Pro

Hero · GSAP

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 panelWhat to do
Eyebrow, title, lede, buttonsYour words
The wordmarks in the marqueeYour 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 rightLeave 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:

AttributeShippedWhat it does
data-duration0.85Entrance duration
data-easepower2.outEntrance easing
data-stagger0.08Gap between revealed elements
data-reveal-distance28How far, in pixels, a revealed element travels
data-delay0.1How long the entrance waits before it starts
data-spotlight-duration0.3How fast the cursor pool follows
data-spotlight-easepower3.outEasing of the pool
data-spotlight-rest-200Where the pool parks before the pointer has moved, in pixels. Well off the card, so it is not visible until you hover.
data-drift-duration2.7One step of the grid drift. 0 stops the drift.
data-float-distance14Chip float amplitude
data-float-duration3.2Chip float period
data-pulse-duration1.8Dot pulse period
data-pulse-from0.4Dot opacity at the dimmest point of the pulse
data-pulse-to1Dot opacity at the brightest point
data-marquee-duration40One 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:

PropertyDefaultWhat it does
--bxg-cell48pxGrid square size
--bxg-linergba(23,28,61,.55)Grid line colour
--bxg-ambient.1Grid opacity away from the cursor
--bxg-active.45Grid opacity inside the pool
--bxg-radius400pxPool size
--bxg-glow, --bxg-glow-midbluesThe pool's colour and its falloff
--bxg-fade0%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.