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
VaultTextScramble Text Effect
Scattering Card PileBrowse all 182Scribble Text Marks
  • 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

Scramble Text Effect

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

Setup

npm i gsapregisterPlugin(ScrollTrigger, ScrambleTextPlugin)

More like this

  • Link
  • Reveal
  • ScrollTrigger
  • Scramble

Features.

  • Text bursts into accent-coloured noise, then resolves left to right back into its own words and colour
  • Two overlapping ScrambleText passes: one into noise, one back, starting a letter's time apart
  • Three triggers in one component: a hero group once on scroll, links on hover and keyboard focus, stats on click
  • The hero's elements run one after another, 0.15s apart by default
  • Nothing shifts: an invisible copy of the text holds the layout while a layer on top animates
  • Screen readers get the real words from a visually hidden copy; the animated layers are aria-hidden
  • Each element sets its own run time with data-sct-duration
  • Respects prefers-reduced-motion: nothing is built, the text stays as it is
  • GSAP, ScrollTrigger and ScrambleTextPlugin

How to get it right.

Short text scrambles best

Headlines, link labels and numbers resolve in well under a second. A long paragraph turns into a wall of noise; keep any sub to one sentence.

Match the duration to the length

The defaults are 0.8s for the headline, 0.6s for the sub and 0.5s for links and stats. A longer string needs a little more time to resolve, or it snaps.

Let numbers be numbers

Stats scramble through letters and symbols too, then land on the real value. Keep the units in the same element (−42°C, 1,280km) so they resolve together.

Give the noise contrast

--sct-noise should stand apart from --sct-fg, so the burst reads as a separate state. The default is the orange accent on white text.

Sub line and stats are optional

It ships with a headline and hover links. For a second line, put a .sct_sub with data-sct-text in the group: it runs data-au-stagger seconds after the headline. For click stats, add a .sct_block holding a .sct_stats row of button.sct_stat, each with a .sct_value (data-sct-text data-sct-on="click") and a .sct_stat-key. .sct_eyebrow and .sct_key are styled for labels.

Variations.

  • Hero only — keep the [data-sct-group] and remove the blocks
  • Nav links — just data-sct-text data-sct-on="hover" links inside the root
  • Soft noise — --sct-noise: #f68e66, or #fffcf2 for a monochrome burst
  • Slow reveal — data-sct-duration="1.4" on the headline and data-au-stagger="0.4"

Where it fits.

  • Editorial heroes — a headline and standfirst that decode as you arrive
  • Navigation and footers — links that scramble on hover
  • Stats and facts — numbers that re-run on click
  • Tech and data brands — anywhere a decoding feel suits the voice

Frequently asked.

No. The spacer layer keeps the element at the size of its real text, and the animated layer is clipped to it.

Put the group at the top of the page. Its trigger starts at top 80%, so a group already past that line runs as soon as the script starts.

Yes. Hover elements also run on focus, so tabbing to a link scrambles it.

The character set is the CHARS constant at the top of code.js.

Each [data-au-scramble-text] is its own instance with its own groups and listeners.

Related components.

Pro

Multi-Cursor Typing

Load

Pro

Scroll-Lit Word List

Scroll

Pro

Glitch Wipe Reveal

Scroll