Skip to content

Pill Tabs Navigation

Smooth sliding pill indicator navigation for tabbed content with spring-physics motion.

Pill Tabs Navigation

by FreeCsStyles Dev's

NavigationMinimal
🌐
#tabs#pill#animated#indicator

Embed this component

Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/pill-tabs.

<iframe src="/embed/pill-tabs" sandbox="allow-scripts" loading="lazy" title="Pill Tabs Navigation" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>

Implementation code

Copy the HTML and CSS for Pill Tabs Navigation. The HTML and CSS variants are self-contained; framework variants assume that framework's project setup.

HTML
<div class="pill-tabs">
  <button class="pill">Overview</button>
  <button class="pill active">Analytics</button>
  <button class="pill">Activity</button>
  <span class="pill-indicator"></span>
</div>
CSS
.pill-tabs {
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  width: fit-content;
}

.pill {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 10px 24px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.3s ease;
}

.pill:hover { color: #fff; }

.pill.active { color: #fff; }

.pill-indicator {
  position: absolute;
  top: 6px;
  bottom: 6px;
  width: calc(33.333% - 2px);
  border-radius: 999px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
  transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

Where Pill Tabs Navigation fits

  • Tabs
  • Segmented Control
  • Content Switching

Topics

  • #tabs
  • #pill
  • #animated
  • #indicator