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
VaultTextUnfolding Letters
Filterable GridBrowse all 182Glow Border Button
  • 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

Unfolding Letters

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

Setup

npm i gsapregisterPlugin(ScrollTrigger, SplitText)

More like this

  • Reveal
  • Stagger
  • Split text
  • ScrollTrigger
  • 3D

Features.

  • Letters unfold out of the page as you scroll, strictly one after another
  • Three hinges, set per word: right (last letter first), left and up (hinged on the bottom edge)
  • Scrubbed: the fold follows the scroll both ways, with a short catch-up (data-au-scrub)
  • A photo sits inline with each word and fills the rest of its line; the photos never move
  • The type scales down with the viewport (min(10em, 11vw)), so long words still fit on phones
  • Splits after fonts load, so letters measure against the real typeface
  • Respects prefers-reduced-motion: nothing is split and the words are just there
  • GSAP, ScrollTrigger and SplitText

How to get it right.

One word per line

Each word sits on one line and never wraps. The block is as wide as its longest line, so keep words to about 12 letters; longer ones push the block wider than a phone screen.

Mix the hinges

The effect is most readable when neighbouring words fold differently. The demo opens right, then left, then up, so each line reads as a new move.

Give the photos a subject in the middle

Wide pictures are cropped to a short strip (0.85em tall) with object-fit: cover, centred. Keep the subject near the vertical centre of the frame. The square variant crops to 0.85em × 0.85em.

Set the scroll window

The fold plays while the word's top travels from 80% to 50% of the viewport (data-au-start, data-au-end). Widen the gap for a slower unfold, narrow it for a snappier one.

Variations.

  • Card fold — the default: 90° and 1200px perspective
  • Deep fold — data-au-perspective="500": the letters swing out towards the reader
  • Half turn — data-au-angle="45" for a subtler tilt-in
  • Locked to scroll — data-au-scrub="0": no catch-up, the fold moves exactly with the scrollbar
  • Text only — remove the images; the lines are just words
  • Your colours — override --fdt-bg and --fdt-fg on the section

Where it fits.

  • Product or menu lists — a few short names with a picture each
  • Collection openers — three words that introduce what's below
  • Portfolio indexes — client or project names with a thumbnail
  • Editorial spreads — big type set against photography

Frequently asked.

It reverses. The fold is scrubbed, so scrolling up folds the letters away again and scrolling down unfolds them.

Yes. Order inside .fdt_line is up to you. The demo puts a square image (fdt_image--square) before the middle word; wide images can go on either side.

Anything other than right, left or up in data-fdt-hinge folds up from the bottom edge.

SplitText adds the full word as aria-label on each heading and hides the letter spans. Give each image a real alt.

Yes. With Lenis, update ScrollTrigger on Lenis's scroll event, as you would for any ScrollTrigger.

Related components.

Pro

Multi-Cursor Typing

Load

Pro

Scroll-Lit Word List

Scroll

Pro

Glitch Wipe Reveal

Scroll