vibran

Floating dock, magnification

Portuguese name: Dock estilo macOS

A floating dock where menu items grow as the mouse gets close, following a smooth curve, and return to normal size when it leaves.

Preview of Floating dock, magnification running live
Copy the promptAdjust colors and speed

When to use it

Good for an icon shortcut bar: social links in a portfolio footer, tools in an app, navigation on a personal site. The effect depends on the mouse and disappears on phones, and with more items than the width holds it turns into a cramped row. Lower data-escala for a more restrained grow, and set --dock-tamanho so tap targets stay comfortable.

How to add it to your site

  1. Copy the prompt in the gallery. It comes with the effect's name and the full code. The prompt text is written in Portuguese, and AI builders handle that fine.
  2. Paste it into your AI: Lovable, Claude, Cursor, Bolt or v0.
  3. Done: the AI adds the effect to your project, just like you saw it here.

Use it in HTML

The effect is plain JavaScript, no library. Just put the data-efeito attribute on the element:

<nav data-efeito="dock"><a href="#">...</a><a href="#">...</a><a href="#">...</a></nav>

More navigation effects

All 20 navigation effects →