vibran

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.

Preview of Sliding pill tabs running live
Copy the promptAdjust colors and speed

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

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

All 20 navigation effects →