Sliding pill tabs
Also called: segmented control
A rounded tab bar where a lighter pill slides to the clicked item, with a small green dot lit on the active one. Comes in three styles: dark, light and outline.

When to use it
Category filters, view switchers, an app or gallery's top menu. With <a> it works as navigation (aria-current); with <button> it becomes a tab set with arrow keys and role tab. Switch style with data-estilo and the dot color with --abas-ponto (or hide it with data-ponto="nao"). On phones, let the bar scroll horizontally when there are more than four items.
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="abas-pilula" data-estilo="escuro"><a href="#" aria-current="page">Descobrir</a><a href="#">Modelos 3D</a><a href="#">Avatares</a><a href="#">Animações</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
- 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