vibran

Sliding tabs, directional tab transition, stretching tab underline

Portuguese name: Abas deslizantes

Tabs with an underline that stretches to the new tab, the leading edge arriving first. The content swaps by sliding the right way, and the box height adjusts to the new panel.

Preview of Sliding tabs, directional tab transition, stretching tab underline running live
Copy the promptAdjust colors and speed

When to use it

Sections with swappable content in the same area: plans and pricing, opening hours, product specs, FAQs by topic. Each tab needs aria-controls pointing to a panel id, and all panels sit inside the same container. Works with arrow keys, Home and End. Panels with very different heights look better with a shorter time (--abas-tempo). On narrow screens the tab list scrolls sideways.

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:

<div data-efeito="abas-deslizantes"><div role="tablist"><button role="tab" aria-controls="p1" aria-selected="true">Planos</button><button role="tab" aria-controls="p2">Horários</button></div><div><section id="p1" role="tabpanel">...</section><section id="p2" role="tabpanel">...</section></div></div>

More navigation effects

All 20 navigation effects →