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.

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
- 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:
<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
- Folder tabstrapezoid tabs
- Expandable icon tabs, expanding tab barAbas de ícone que expandem
- 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
- Animated hamburger menu icon, menu toggle morphBotão de menu que se transforma