Opens in a new tab

Hero Banner

Templates3 minutes readUpdated 1 Oct 2026

This article documents

Hero Banner Free

Hero · GSAP + ScrollTrigger

A hero in two bands. The top band holds the badge, headline and social proof; the bottom holds a card, a call to action and a large visual with a slow parallax.

Requires: GSAP core, ScrollTrigger, SplitText — all loaded by the companion plugin.

It is two sections, not one#

This is the one template that pastes as two top-level sections, and it is deliberate: the two bands have different backgrounds and different vertical rhythm, and forcing them into one section would have meant fighting that with negative margins.

Both carry the bsfy-hero-banner global class and the bxc-hero-banner marker. They are distinguished by bxc-hb--head and bxc-hb--cards.

If you set a background, set it on both. Each has its own background control in the panel, and changing one leaves the other as it was.

What you replace#

In the structure panelWhat to do
The badge, headline, proof text, card text, CTAYour words
bxc-hb__image, bxc-hb__logo, the avatarsYour images. Real Image elements — they import on paste.
Background pattern (decorative - replace or remove)Yours, or delete it. It is aria-hidden, so removing it costs nothing.

Tuning the animation#

Every step of the sequence is retunable from the panel, under Attributes on whichever of the two sections owns it. The pattern is data-{part}-{option}.

Which options a part takes depends on the kind of entrance it has, so here they are exactly:

PartEntranceOptions it reads
avatarsscale revealstart duration ease delay scale
proofword staggerstart duration ease delay stagger shift
titlecharacter staggerstart duration ease delay stagger shift
cardtextword staggerstart duration ease delay stagger shift
ctafade upstart duration ease delay offset
imageparallaxspeed only

Every one of them is optional, and the shipped values below are only the ones we set — the rest fall back to the script’s own defaults.

Shipped on the headline section:

data-start="top 85%"
data-avatars-duration="1.5"   data-avatars-start="top center"   data-avatars-scale="1.3"
data-proof-delay="0.3"        data-proof-duration="1.1"
data-proof-stagger="0.03"     data-proof-shift="-40"
data-title-delay="0.4"        data-title-duration="0.7"
data-title-stagger="0.02"     data-title-shift="-50"

Shipped on the card section:

data-start="top 85%"
data-cardtext-delay="0.8"     data-cardtext-duration="1"
data-cardtext-stagger="0.02"  data-cardtext-shift="-50"
data-cta-delay="0.15"         data-cta-duration="1.5"      data-cta-offset="50"
data-image-speed="0.85"

data-start is the ScrollTrigger start position for the whole section, and a per-part data-{part}-start overrides it for that part. The one exception is image: the parallax runs across the whole time the visual is on screen and has no start of its own, so data-image-start does nothing. data-image-speed is the parallax rate — below 1 the visual moves slower than the page.

Delete any of these and the built-in default applies. None is required.

The headline is split into characters#

SplitText breaks the headline into individual characters so they can stagger in. That happens at runtime and is undone afterwards, so what lives in your database is still one ordinary heading.

Accessibility is handled by SplitText itself: the heading keeps an aria-label of the whole sentence and the pieces leave the accessibility tree, so a screen reader reads one heading rather than fifty letters.

Restyling#

Five custom properties at the top of the bsfy-hero-banner class, each defaulting to one of your site's own variables:

PropertyDefault
--bxc-hb-inkvar(--color-ink)
--bxc-hb-mutedvar(--color-ink-muted)
--bxc-hb-groundvar(--color-bg)
--bxc-hb-accentvar(--color-accent)
--bxc-hb-radiusvar(--radius-card)

Because they default to your variables, this template picks up your palette before you change anything.

Without JavaScript#

Everything is in place and readable: badge, headline, proof, card, CTA and visual. Nothing fades in because nothing needed to fade in — the static state is the finished design.