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
VaultBackgroundsSquashy Bead Rods
Arc Collage HeroBrowse all 182Bell Wipe Transition
  • 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

Squashy Bead Rods

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

Setup

npm i gsapregisterPlugin(CustomEase, SplitText)

More like this

  • Hero
  • Elastic
  • Split text
  • SVG

Features.

  • A comb of beaded rods down each side of a hero, drawn by the script from a short list of numbers
  • The mouse squashes the beads near it; each bead keeps its far end and pulls the near one away
  • Soft blobs hide parts of the combs and slide away from the pointer
  • Everything eases home when the mouse leaves, and the loop sleeps
  • The heading rises line by line when it comes into view
  • One button whose words roll up on hover; an eyebrow, a short text and a second button are styled if you want them
  • Dark page with a fine grain and one orange glow; three variables set the page, the type and the rods
  • Respects prefers-reduced-motion: the rods hold still

How to get it right.

Keep the middle clear

The combs sit in the outer thirds of the screen. Keep the content centred and narrow enough to stay between them: on desktop that is roughly the middle 45% of the width.

Keep the background flat

The blobs and the bottom fade are painted in --brd-bg, the page colour. Over a flat fill they simply hide the rods; over a gradient or a picture you would see them as patches.

Give it the full screen

The drawing is scaled to cover the root, like background-size: cover. A short, wide band crops most of the rods' height.

Variations.

  • Wider reach — data-au-reach="240"
  • Harder squash — data-au-squash="0.15"; 1 turns the squash off
  • Bigger push — data-au-push="200"; 0 leaves the blobs where they are
  • Snappier — data-au-speed="2.5"
  • Bare combs — data-au-covers="false"
  • No copy — delete .brd_content, or any part of it; the script runs without it
  • Other content — change the button, or add a .brd_eyebrow or .brd_text, freely; only the element with data-brd-title is animated
  • Light version — --brd-bg: #fffcf2; --brd-fg: #252422 on the root
  • Your palette — override --brd-rod, --brd-bg and --brd-fg on the root

Where it fits.

  • Landing heroes — a headline with something to play with
  • Call-to-action sections — a closing statement before the footer
  • Audio, data and engineering brands — the rods read as strings, pipes or sliders

Frequently asked.

The rods and blobs are there and the heading rises, but nothing squashes: there is no pointer to follow. Phones get their own drawing so the combs frame the text.

Yes, in the script. COMBS lists each run of rods by its first x and the tops of its rods; add or remove numbers. See the notes for your AI.

Thirty-four paths are cheap, stay sharp at any size and only the rods near the pointer are rewritten each frame.

No. An IntersectionObserver starts the heading and nothing else depends on scroll.

Related components.

Pro

3D Image Sphere

Scroll

Pro

Card Tunnel Hero

Load

Pro

Cursor Smoke

Cursor