ProUnlock everything for $49.99 a year, or $79.99 once. See plans ›

Nexus UI

Travelling Tooltip, animated React component

One tooltip for a whole toolbar. The first hover waits a beat, then it glides from button to button with no delay, resizing to each label and showing the shortcut.

  • Pro
  • Motion Effects
  • Hover
  • Spring

Play with it

Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.

Hover one button, then slide along the bar

Props

PropTypeDefaultWhat it does
toolsTRAVELLING_TOOLTIP_TOOLSThe toolbar buttons: id, label, keys (the shortcut shown as a keycap) and d (SVG path data for a 24 x 24 stroke icon). Defaults to a six-button text formatting bar.
label"Formatting"Accessible name of the toolbar.
openDelay450How long the first hover waits before the tooltip appears, in ms. After that it travels with no delay.
warmMs600How long the tooltip stays warm after the pointer leaves the bar, in ms. Re-enter within this time and it appears at once.
hint"Hover one button, then slide along the bar"Caption under the toolbar. Pass an empty string to hide it.
onSelect—Called when a button is pressed.
autoplayfalseWalks the tooltip along the bar by itself until someone points at or focuses the bar. Pauses off screen and never runs under reduced motion.
className—Extra classes for the wrapper.