04.16 · Micro-Interactions

Tooltip Reveal

A small label fades in after a short pause. Best for icon buttons.

Hover it

Point at an item, tab to it or tap it on a phone, or press Show me.

⚙️
This text is truncat…
🧑

Try it

Change a setting, then try it again or press Show me.

Delay before showing

The pause stops tips flashing as the pointer passes.

Speed

How quickly the label fades and grows in.

More optionsFewer options

Delay before hiding

How long the tip stays after the pointer leaves.

A small point that aims the tip at its item.

Copy the prompt

Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.

Add tooltips to [the icon buttons, shortened text or fields that need a short explanation]. When the pointer rests on an item, or keyboard focus reaches it, wait a moment, then fade the tooltip in beside it while it grows very slightly from the side facing the item, so it feels light rather than like a pop-up. The wait keeps tooltips from flashing while the pointer only passes by. When the pointer leaves, hide it again, after a pause if the settings include one, and let the Escape key close it at once. On touch screens, show and hide it with a tap. If the visitor has reduced motion turned on, fade it without growing. Match the settings listed below.

Replace the words in brackets with your own element. Your settings are added at the end.

Free and open source. If this helped, a star on GitHub helps other people find it.

Star on GitHub

What it is

The full explanation is in README.md.

Good for

  • Icon buttons
  • Cut-off text
  • Form hints
  • Chart values

Avoid on

  • Key information
  • Long text