vibran

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.

Preview of Morphing mega menu, dropdown menu with preview running live
Copy the promptAdjust colors and speed

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

  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="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

All 20 navigation effects →