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
VaultUI componentsCursor Follow Tooltip
Fog Image SwapBrowse all 182Glow Wordmark Footer
  • 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

Cursor Follow Tooltip

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

Setup

npm i gsap

More like this

  • Tooltip
  • Elastic

Features.

  • One tooltip shared by every trigger in a block: it rides the pointer, or sits against the element
  • Moving to the next trigger swaps the label at once and the pill glides there, resizing with a little overshoot
  • Sits on your preferred side and flips to the other side when it would run off the screen, then stays inside a small margin
  • Enters with a small lift and scale, so it feels like it rises off its anchor
  • Keyboard focus pins it to the element; Escape hides it
  • Click triggers (data-ftp-on="click") toggle it, and a tap outside closes it
  • On touch, tapping a hover trigger shows it
  • Triggers in one data-ftp-group always glide between each other
  • Anchored tooltips stay attached while the page scrolls
  • Sets aria-describedby on the trigger it describes
  • Respects prefers-reduced-motion: it still shows and hides, without motion
  • GSAP only

How to get it right.

Use follow mode for areas, anchored for things

Follow suits maps, charts and images, where the trigger is a region and the pointer is the point of interest. Anchored suits words, buttons and icons, where the label belongs to a specific element.

Keep labels to one line

The pill doesn't wrap on wide screens (it does under 480px). A short phrase reads at a glance and keeps the glide tidy.

Make focusable triggers for keyboard users

The tooltip shows on focus, so give non-interactive triggers (svg shapes, spans) tabindex="0" and an aria-label where they need one.

Use a delay for dense rows

A data-au-delay of 150–250ms stops labels flashing as the pointer passes over a row of triggers.

Variations.

  • Follow — the default: the label rides the pointer across the map
  • Anchored — data-au-mode="anchored": the label sits against each trigger and glides between them
  • Other sides — data-au-placement="bottom", "left" or "right", or data-ftp-placement per trigger
  • Hover and wait — data-au-delay="200" with data-au-enter="0.45", data-au-hide="0.4", data-au-glide="0.4" for a gentler feel
  • Instant — data-au-enter="0.2", data-au-hide="0.15", data-au-glide="0.2", data-au-hide-delay="50"
  • Click to read — data-ftp-on="click" on info buttons
  • Your colours — override --ftp-tip-bg and --ftp-tip-fg on .ftp_tip

Where it fits.

  • Maps and diagrams — label regions and points as the pointer moves
  • Charts — values on hover over bars or points
  • Glossaries — terms in running text, gliding from one to the next
  • Icon toolbars — names for icon-only buttons
  • Info buttons — "i" buttons that explain a field on click

Frequently asked.

No. The map shows follow mode. Any element can be the root: put data-au-follow-tooltip on a wrapper and data-ftp-trigger + data-ftp-text on anything inside it.

The script adds it to <body> with position: fixed, so no overflow: hidden parent can clip it. Retheme it on .ftp_tip.

Yes. Each root gets its own tooltip and settings.

No. It's plain text from data-ftp-text, and the tooltip ignores the pointer so you can't reach anything inside it.

No. Load gsap before the script; nothing else is needed.

Related components.

Pro

Image Slide Tabs

Click

Pro

Glow Band Sheet Modal

Click

Pro

Expanding Card Modal

Click