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 Word Slider
Wavy Seam AccordionBrowse all 182ASCII Image
  • 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 Word Slider

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
  • CustomEase

Setup

npm i gsapregisterPlugin(ScrollTrigger, CustomEase)

More like this

  • Horizontal scroll
  • Pinned
  • ScrollTrigger
  • Sticky

Features.

  • A pinned, full-viewport section driven by one scrubbed ScrollTrigger: nothing runs on its own, it all follows the scroll
  • A row of words slides through a lit window column; the rest stay dim
  • Each word's image slides into the window, settles from a zoom and parks while the next one covers it
  • The active word's description types in word by word
  • Swipe carousel with arrows below 768px, sharing the same active word and description
  • Scroll distance, image zoom, drift, dim level and lit colour are all attributes
  • Respects prefers-reduced-motion: text appears without animation

How to get it right.

Keep the words short

Each word sits in a quarter-width column. One word of up to nine or ten letters reads cleanly; longer words run into the next column.

Use portrait images

The image rows keep a 1114 × 2000 ratio and are capped so the words always have room above them. Anything around 9:16 crops well; landscape pictures lose their sides.

Match the copy to the items

Every word needs an image row, a cell with its image in the matching column, and a description, in the same order. Row n holds its image in cell n.

Set the pace with distance

data-au-distance is the scroll per item in lvh. 73 feels deliberate; drop to 50 for a quicker run, raise towards 100 when the descriptions are longer and need time to read.

Variations.

  • Accent — data-au-color="#f68e66" lights the window column in orange
  • Clean — data-au-dim="0" hides the words outside the window entirely
  • Still images — data-au-image-scale="1" and data-au-drift="0" for straight slides with no zoom or drift
  • Quick run — data-au-distance="45" for a short section further down a page

Where it fits.

  • Services on a studio site — one discipline per word, a picture and a line each
  • Lookbook or collection — one look per word, the description as the caption
  • Process — steps of a project, each with a frame from that stage
  • Team or roles — names or roles in the row, portraits in the window

Frequently asked.

Add a word to both word rows, a new image row (one more cell in every row, the image in the new column) and a description. The script counts the words and sizes the track to match.

Change data-au-distance. The section is 100lvh plus that much per item after the first.

Yes. Override --wsl-bg, --wsl-fg and --wsl-line on the section, and set the lit colour with data-au-color.

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

No. Load gsap, ScrollTrigger and CustomEase before the script.

Related components.

NewPro

Arc Collage Hero

Scroll

Pro

Rising Card on Scroll

Scroll

Pro

Outline Paint Reveal

Scroll