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
VaultTextLetter Morph Search
Cursor Push TagsBrowse all 182Logo Shuffle Grid
  • 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

Letter Morph Search

This one is free. Make an account and the code is yours, no card needed.

Create a free account

What you'll need.

Install

  • gsap
  • Flip

Setup

npm i gsapregisterPlugin(Flip)

More like this

  • Form
  • Flip
  • Morph

Features.

  • A search field that echoes into a big live headline, letter by letter
  • Letters the old and new text share are reused: they slide to their new spots with GSAP Flip
  • New letters fade in; a single deleted letter fades out where it stood
  • Pastes, picks and select-and-delete remove the leaving letters at once, so fast edits never queue up
  • Typing or deleting at the end skips the slide, so plain typing stays crisp
  • Suggestion pills morph the headline between whole words; the matching pill is marked pressed
  • A clear button fades in with text and refocuses the field
  • An optional prefix stacks above the target under 768px
  • Respects prefers-reduced-motion: the headline still follows the field, instantly
  • GSAP and Flip, no SplitText

How to get it right.

Pick words that share letters

The morph shines when neighbouring suggestions reuse letters: "Polaris" → "Pleiades" keeps the P, l, a, i and s and slides them. Letters are matched by letter and how many came before it, ignoring case.

Keep the target short

The target sits on one line at 3em. Two or three words fit at 1440; longer text wraps letter by letter, which reads badly. Shorten the suggestions first.

Use a short duration

0.3s keeps up with typing. Long durations look lovely on a pill click but lag behind fast typists, since every keystroke starts a new slide.

Write a real label

The target is aria-hidden and a hidden copy ([data-lmt-sr]) carries the text for screen readers. Give the field an aria-label that says what it searches.

Prefix and eyebrow are optional

It ships with the target alone. Put a <span class="lmt_prefix"> before the target for muted words beside it, or a <p class="lmt_eyebrow"> above the title.

Variations.

  • Springy — data-au-ease="back.out(2)": kept letters overshoot their new spots
  • Glide — data-au-ease="expo.out" with data-au-duration="0.5"
  • No pills — remove the .lmt_picks list; the field alone drives it
  • Pills only — remove the .lmt_field; the pills alone morph the target
  • Your colours — override --lmt-bg, --lmt-fg, --lmt-muted and --lmt-accent on .lmt_stage

Where it fits.

  • Search heroes — a docs, shop or atlas search that shows what you're looking for
  • "Made for…" headlines — pills that swap the audience in a sentence
  • Name or domain pickers — a live preview of what someone types
  • Playful forms — a sign-up that says your name back to you

Frequently asked.

Only the kept letters slide, and only when one of them changes position. Adding or removing the last letter leaves the rest where they are, so the script skips Flip and just fades the one letter.

If more than one letter leaves, they're removed at once instead of fading one by one. The letters that stay still slide, and the new ones fade in.

The field is a real labelled input, the pills are buttons with aria-pressed, and screen readers get the target text from a visually hidden copy rather than letter spans.

Yes. Letters are matched ignoring case, but a kept letter takes the new case ("a" → "A").

Each [data-au-letter-morph] is its own instance with its own field and pills.

Related components.

Pro

Multi-Cursor Typing

Load

Pro

Scroll-Lit Word List

Scroll

Pro

Glitch Wipe Reveal

Scroll