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.

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
- 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.
- Paste it into your AI: Lovable, Claude, Cursor, Bolt or v0.
- 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
- Folder tabstrapezoid tabs
- Expandable icon tabs, expanding tab barAbas de ícone que expandem
- Sliding tabs, directional tab transition, stretching tab underlineAbas deslizantes
- Sliding pill tabssegmented control
- Gooey tabs, liquid tab indicator, liquid navbarAbas líquidas
- Curved bottom tab bar, jumping bubble tab bar, mobile bottom navigationBarra de app com bolha
- Bottom tab bar in 11 stylesBarra inferior de app em 11 estilos
- Shrinking glass navbar, sticky header on scrollBarra que encolhe e vira vidro