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
VaultTextSplit Headline Reveal
Rising Fill ButtonBrowse all 182Sliding Step Form
  • 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

Split Headline Reveal

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

  • Reveal
  • Zoom
  • ScrollTrigger

Features.

  • A photo grows out of nothing between the two halves of a headline and pushes the words apart
  • One number per headline (--szt-zoom, 0 → 1) drives the window width, the image scale and the corner radius together
  • Two modes: scrub follows the scroll both ways, enter plays once over 1.2s on expo.out
  • The window keeps a fixed 3:4 height, so the words only ever move sideways
  • Several headlines per section, each with its own trigger
  • Stacks under 768px: first words, photo, last words
  • Respects prefers-reduced-motion: the photo is simply open
  • GSAP and ScrollTrigger; the look is all CSS

How to get it right.

Split the line where it breathes

Put the photo where you'd pause reading aloud: "Out past | the break". Keep each half short; neither side wraps, so long halves push the row past the screen.

Pick tall photos

The window is 3:4 by default (--szt-aspect: 0.75) and the image fills it with object-fit: cover. Portrait images keep their subject in frame while the window is still narrow.

Choose the mode for the page

Scrub makes the reader the projector: the photo opens as they scroll and closes again going back. Enter is calmer for long pages: it opens once and stays.

Size the window to the type

--szt-width (17.5em) is the open width. Around three times the cap height of the words looks balanced; go wider for a hero, narrower for a section heading.

Variations.

  • Played once — data-au-mode="enter"
  • Wide window — --szt-width: 24em on .szt_section
  • Square crop — --szt-aspect: 1
  • Tight scrub — data-au-scrub="0.3": the photo follows the scrollbar closely
  • Your colours — override --szt-bg and --szt-fg

Where it fits.

  • Editorial headlines — a travel or culture story, a photo in the line
  • Case study chapters — a project shot opening between the title words
  • Hero statements — one row near the top of a page
  • Product stories — "Made | by hand" with the maker's photo

Frequently asked.

Yes. Add as many [data-szt-row] rows as you like; each one zooms on its own trigger. Every row fills the viewport height by default.

The first [data-szt-text] in the row. In scrub mode the zoom runs from that word's top meeting the bottom of the viewport to it reaching the centre. In enter mode it plays when the word passes 80% of the viewport.

It's a real <img> with its own alt text inside the heading, so screen readers read the words and the image description in order.

Yes. --szt-zoom defaults to 1 in the CSS, so without the script the photo is open between the words.

Related components.

Pro

Multi-Cursor Typing

Load

Pro

Scroll-Lit Word List

Scroll

Pro

Glitch Wipe Reveal

Scroll