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
VaultScrollHeading Lift on Scroll
Folding Burger NavBrowse all 182Image Column Stream
  • 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

Heading Lift on Scroll

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

  • Pinned
  • Section transition
  • Reveal
  • ScrollTrigger
  • Sticky

Features.

  • A section arrives showing only its heading, centred on the screen
  • The screen sticks, the heading rises to the top and the content comes up under it, fading in
  • Stop part-way and the landing finishes itself, forward or back, the way you were scrolling
  • The stage is laid out as the finished section, so your CSS decides where everything lands
  • Repeats down a page: every landing section inside the wrapper runs on its own
  • Comes with two content pieces: rotating stories with a picture, and a list of questions that open one at a time
  • Works with any other content under the heading: a picture, a grid, a list
  • Measured again on resize and once fonts load
  • Respects prefers-reduced-motion: the section is simply there, landed

How to get it right.

Lay it out landed

Style .hdl_stage as the section should look at the end. The script only pushes the heading and the content down and brings them back, so nothing else needs to know about the animation.

Keep the content inside one screen

The stage is one screen tall and sticky. Content taller than what is left under the heading runs off the bottom of the screen. Put longer content in the section after this one.

Give it something to arrive from

The heading is centred while the track scrolls in, so the effect needs a section above it: a plain section with one big line, as in the demo, is enough. At the very top of a page the heading would simply start centred.

Go easy on the scroll length

--hdl-length is how long the screen is held. The default 70vh gives a short landing and a short pause. Much more and the page feels stuck.

Variations.

  • A longer hold after landing — --hdl-length: 120vh
  • Landing takes the whole scroll, no hold — data-au-land="100"
  • Heading lands higher or lower — --hdl-top: 4em
  • Softer follow — data-au-scrub="0.4"
  • No auto-finish — data-au-snap="false": the landing stays wherever the scroll stops
  • A slower finish — data-au-snap-time="0.9"
  • No button under the heading — delete .hdl_btn; data-hdl-heading sits on the wrapper, so whatever is in it travels together
  • More landings — repeat a [data-hdl-track] section inside the wrapper, with a plain section before it
  • Stories that stay longer — --hdl-story-time: 16s
  • Stories without the timer — delete the [data-hdl-fill] spans
  • Light page — swap --hdl-bg and --hdl-fg, drop --hdl-grain, and set --hdl-ink and --hdl-stone to darker tones

Where it fits.

  • Landing pages — testimonials, pricing, FAQ sections that deserve an entrance
  • Case studies — chapter openings
  • Long reads — a beat between sections

Frequently asked.

No. It runs on native scroll, and with Lenis once Lenis updates ScrollTrigger. With a smooth scroller the auto-finish waits until that scroller has fully stopped.

That is the auto-finish: resting part-way through the landing scrolls the window to the nearest stop. Turn it off with data-au-snap="false".

Yes. The stories and the questions in the demo are wired by the same script, and your own slider or tabs work as normal once landed. Keep the whole thing within one screen.

The same thing, in one column: the pictures are hidden and the spacing tightens so a landing fits one screen. If your own content does not fit a phone screen under the heading, set .hdl_track { min-height: 0 } and .hdl_stage { position: static } in a media query and skip init() there.

Related components.

NewPro

Arc Collage Hero

Scroll

Pro

Rising Card on Scroll

Scroll

Pro

Outline Paint Reveal

Scroll