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
VaultCursorLabel Pill Cursor
Jelly ButtonBrowse all 182Lens Zoom Carousel
  • 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

Label Pill Cursor

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

Setup

npm i gsap

More like this

  • Tooltip
  • Velocity

Features.

  • A small dot trails the mouse with a smooth catch-up and grows over links and buttons
  • Over anything with data-lcu-label the dot gives way to a pill showing that label, 20px above the pointer
  • The pill pops in with a little overshoot and shrinks away when you leave
  • It leans into sideways movement (up to 35°) and straightens when you stop, like a tag on a string
  • Three pill tones per element: cream (default), brand orange and soft orange
  • The native cursor is hidden only over labelled elements, and only once the follower is showing; everywhere else it stays
  • Follows a pen as well as a mouse, and stays under a still pointer while the page scrolls
  • Tilt and smoothing are scaled to frame time, so it feels the same at 60Hz and 120Hz; the loop stops when nothing is moving
  • Lives inside its section: the follower hides 300ms after the mouse leaves it, and the pill slides along to stay inside it
  • Off on touch devices and with prefers-reduced-motion: no follower, the normal pointer stays
  • GSAP only

How to get it right.

Keep labels to two or three words

The pill sits on the pointer and never wraps. "Watch the piece" or "Book a ticket" read at a glance; a sentence covers what you're pointing at.

Label the action, not the thing

The image already says what it is. Use the pill for what happens on click: "Open case study", "Play film", "Add to bag".

Use tones for meaning

Leave most labels on the cream default and save brand for the one action you want picked, such as buying. Mixing all three on every card makes them noise.

Tune the follow and tilt together

data-au-follow sets how far the follower lags (0.7s by default); data-au-tilt how hard the pill leans. A short follow with a high tilt feels twitchy; a long follow with no tilt feels floaty.

Variations.

  • Default — 0.7s follow, 0.5° tilt per px of speed
  • Snappy — data-au-follow="0.25" data-au-tilt="0.3" for dense grids
  • Swingy — data-au-follow="0.9" data-au-tilt="1.2": the pill swings hard as you sweep across
  • No tilt — data-au-tilt="0": an upright pill
  • Your colours — override --lcu-dot, --lcu-pill, --lcu-pill-text, --lcu-brand, --lcu-soft and --lcu-tone-text on the section

Where it fits.

  • Portfolio and case-study grids — "View project" on every tile
  • Shop listings — "Add to bag" in brand on products
  • Galleries — "Open" on images, "Play" on videos
  • Team pages — "Say hello" over portraits

Frequently asked.

Yes. Any element inside the section with data-lcu-label="…" gets the pill: links, buttons, rows, images.

The follower is positioned inside the [data-au-label-cursor] section and only listens to the mouse there, so it never fights with the rest of your page. Wrap a larger area (or the whole page body content) in the section if you want it everywhere.

Nothing changes: there's no follower, labels don't show and the cards behave as normal links.

Yes. Labels are read as the pointer reaches them, so there's nothing to refresh.

Add <h2 class="lcu_title">Your heading</h2> before .lcu_grid, or pass title in React. The styles are still in code.css.

Related components.

Free

Dither Reveal Cursor

Cursor

Pro

Cursor Push Tags

Cursor

Pro

Mesh Gradient Hero

Cursor