Platform
VaultVault
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
ButtonsPart of ProButtons
IconsPart of ProIcons
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
SavedPart of ProSaved
Support
DocumentationDocumentation
MCP serverMCP server
SettingsSettings
VaultScrollHorizontal Panels
Hide on Scroll HeaderBrowse all 182Noise Image Dissolve
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
Sign inSign in

Start free. The code for 15 components, no card needed.

Get 15 free

Horizontal Panels

This one is locked. Become a member to open the code for it and the rest of the Vault.

See plansTry the 15 free ones

What you'll need.

Install

  • gsap
  • ScrollTrigger

Setup

npm i gsapregisterPlugin(ScrollTrigger)

More like this

  • Horizontal scroll
  • Pinned
  • Zoom
  • ScrollTrigger
  • Sticky

Features.

  • Opens on a full-bleed intro photo with a large heading
  • On wide screens with a mouse the section pins and tall colour panels slide in from the right
  • The intro darkens as the panels pass and fades away at the end, leaving the last panel parked on the left
  • Each panel's colour block shrinks to a strip while its photo zooms out from 1.3
  • Each panel's text plays in once it's a fifth of the way through: the name blurs in, then the count, caption, "+" button and any links
  • Touch screens and small screens get stacked cards under a sticky intro, each revealing as it scrolls in
  • Respects prefers-reduced-motion: the stacked cards are shown as they are, with nothing animating
  • Tab reaches every link: on the strip the page scrolls to the focused link's panel and its text shows at once
  • Five tones as CSS variables, all Vivid or neutral; each panel picks one with a class

How to get it right.

Write for two layouts

The same markup is a wide 6:7 panel on desktop and a short card on phones. Keep names to one or two words, captions to two short lines and links to four or fewer, so both read well.

Choose photos for the top of the panel

On the track the photo fills the panel above a 17.8125em colour strip; on cards it sits in the right-hand 28%. Pictures with the subject in the middle crop well both ways.

Leave the last panel empty

The final data-hzs-panel has no body. It gives the rail somewhere to stop so the last real panel can park on the left while the page colour shows on the right.

Set the pace with distance

data-au-distance is the pin length in section widths. 3 is calm for five panels; add about half a width per extra panel.

Variations.

  • Lighter intro — data-au-shade="0.3" keeps more of the photo as the panels pass
  • Quick strip — data-au-distance="2" for a shorter run
  • One tone — give every panel the same hzs_panel--night class for a single-colour strip
  • Your palette — override --hzs-orange … --hzs-snow and their -ink pairs on the section

Where it fits.

  • Studio or agency homepages — sectors, services or markets, one per panel
  • Product ranges — a collection per panel, linking through to each
  • Destinations — places or chapters with a photo each
  • Annual reports — a highlight per panel

Frequently asked.

The strip only runs at 768px and wider with a mouse or trackpad and motion allowed. Touch screens, phones and reduced motion get the stacked cards, which work without pinning.

Copy an <article data-hzs-panel> with its media, body, name, count and caption, put it before the blank tail panel and update the counts. The script measures the panels at runtime.

Yes. They ship off. For links, add <ul class="hzs_links"> with data-hzs-link items before a panel's name, and give that panel's caption hzs_caption--wide. For a thumbnail (stacked cards only), add <div class="hzs_thumb" data-hzs-thumb> after the caption. Intro details are <span class="hzs_detail hzs_detail--one">, --two and --cue. In React pass links, thumb, details and cue. The name, count, caption, "+" button, media and image are required.

Yes. Override the tone variables on the section, or add your own hzs_panel--<tone> class that sets --hzs-panel-bg, --hzs-panel-ink and --hzs-panel-contrast.

Yes. Tab moves through every link in every panel. On the strip the page scrolls along the pin until the focused link's panel is in view; on stacked cards the page scrolls to it as usual. Either way the panel's text shows straight away.

No. It scrubs off the scroll position, so it works with native scrolling and with any smooth-scroll library that updates ScrollTrigger.

Related components.

NewPro

Arc Collage Hero

Scroll

Pro

Rising Card on Scroll

Scroll

Pro

Outline Paint Reveal

Scroll