Morphing mega menu, dropdown menu with preview
Portuguese name: Mega menu com prévia
A top menu with a single shared panel: it resizes and moves from one item to the next while the content slides the right way, and every link shows a preview on hover.

When to use it
Sites with many pages or grouped services: agency, SaaS, school, shop with categories. Items with a panel are buttons (they open on hover and click), items without are plain links. Each link with data-previa and data-imagem (any CSS background, even url()) swaps the card beside it. It includes Esc, arrow keys, aria-expanded and closes on outside click. On phones the card hides and the panel becomes a list.
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="mega-menu-previa" aria-label="Principal"><ul><li><button type="button">Serviços</button><div data-painel><a href="#sites" data-previa="Site novo, do briefing ao ar." data-imagem="linear-gradient(135deg,#1d5fd0,#2cd3f2)"><strong>Sites</strong><small>Institucional e loja</small></a><div data-previa-area></div></div></li><li><a href="#contato">Contato</a></li></ul></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