25 / 39
All 39 in 39 Tailwind CSS Breadcrumbs
- 01Tailwind Accessible Breadcrumb with Schema.org Microdata & ARIA
- 02Tailwind Responsive Collapsing Breadcrumb Bar with Container Queries
- 03Tailwind Adaptive Light & Dark Mode Breadcrumb Bar with Theme Tokens
- 04Tailwind E-Commerce Filter & Facet Breadcrumb with Removable Chips
- 05Tailwind Glassmorphism Floating Breadcrumb Pill with Shimmer Sweep
- 06Tailwind Neumorphic Soft UI Breadcrumb with Dual Box Shadows
- 07Tailwind Sticky Scroll-Shrink Breadcrumb Header with Scroll-Driven Animation
- 08Tailwind Material Design Flat Breadcrumb Bar with Ink Ripple
- 09Tailwind Isometric 3D Layered Breadcrumb with Extruded Tiles
- 10Tailwind Breadcrumb Bar with Built-In Dropdown Sibling Menus
- 11Tailwind Full-Width Block-Style Segmented Breadcrumb Bar
- 12Tailwind Accent-Colour Toggle Breadcrumb with Persisted Theme
- 13Tailwind Seamless Arrow-Cutout Breadcrumb Trail with clip-path
- 14Tailwind Compact Icon-Only Home Node Breadcrumb Bar
- 15Tailwind Segmented Rounded-Outline Pill Breadcrumb
- 16Tailwind Neumorphic Soft Inset-Shadow Breadcrumb Channel
- 17Tailwind CSS Grid Auto-Fitting Responsive Breadcrumb Trail
- 18Tailwind Holographic Shimmer Web3 Breadcrumb with Animated @property
- 19Tailwind SaaS Gradient-Text Breadcrumb Bar with Animated Clip
- 20Tailwind Marketplace Filter-Chip Breadcrumb with Icon Chips
- 21Tailwind Editorial Breadcrumb with Animated SVG Wave Underline
- 22Tailwind Developer Docs Breadcrumb with One-Click Path Copy
- 23Tailwind Modern Arrow Breadcrumb Bar using clip-path Polygons
- 24Tailwind Multi-Line Aligned Breadcrumb Layout with CSS Subgrid
- 25Tailwind Breadcrumb Links with Animated Underline Glow
- 26Tailwind Minimalist Breadcrumb with Swappable Masked SVG Separators
- 27Tailwind Multi-Step Checkout & Wizard Breadcrumb Indicator
- 28Tailwind Ribbon-Style Chevron Breadcrumb Trail
- 29Tailwind Pill-Shape Badge Breadcrumb Bar
- 30Tailwind Clean Line-Separator Minimalist Breadcrumbs
- 31Tailwind Gradient Background Glow Breadcrumb Bar
- 32Tailwind Floating Card Shadow Breadcrumb Navigation
- 33Tailwind Truncated Ellipsis Compact Mobile Breadcrumb
- 34Tailwind Inline Bullet-Dot Separator Breadcrumb
- 35Tailwind Skewed Parallelogram Breadcrumb Bar
- 36Tailwind Outline Border-Only Geometric Breadcrumbs
- 37Tailwind Circular Icon & Numbered Step Breadcrumbs
- 38Tailwind Frosted Glass Dark UI Breadcrumb Component
- 39Tailwind Micro-Interaction Animated Hover Breadcrumbs
Tailwind Breadcrumb Links with Animated Underline Glow
A dark minimal trail where each link grows a glowing underline that wipes in from the left and retracts to the right — one pseudo-element, a transform-origin flip, and a drop-shadow for the glow. Entirely compositor-driven, and the current crumb keeps its underline lit.
Untitled UI Pro: 5,000+ React + Tailwind CSS v4 components · from $349 one-time
Untitled UI React · Affiliate link
The code
<section class="tbc-25 w-full min-h-svh grid place-items-center bg-tbc25-bg font-tbc25-sans px-8 py-8">
<nav aria-label="Breadcrumb">
<ol class="flex flex-wrap items-center list-none m-0 p-0">
<li class="flex items-center"><a href="#" class="relative px-0.25 py-0.75 text-[15px] font-semibold text-tbc25-link no-underline transition-colors duration-200 hover:text-white focus-visible:text-white focus-visible:outline-2 focus-visible:outline-tbc25-acc focus-visible:outline-offset-4 after:content-[''] after:absolute after:inset-x-0 after:-bottom-1 after:h-[2.5px] after:rounded-[2px] after:bg-tbc25-acc after:scale-x-0 after:origin-right after:transition-transform after:duration-350 after:ease-[cubic-bezier(0.25,1,0.5,1)] after:[filter:drop-shadow(0_0_5px_var(--color-tbc25-acc))] hover:after:scale-x-100 hover:after:origin-left focus-visible:after:scale-x-100 focus-visible:after:origin-left motion-reduce:after:transition-none">Home</a></li>
<li class="flex items-center before:content-['/'] before:mx-3.5 before:text-tbc25-sep"><a href="#" class="relative px-0.25 py-0.75 text-[15px] font-semibold text-tbc25-link no-underline transition-colors duration-200 hover:text-white focus-visible:text-white focus-visible:outline-2 focus-visible:outline-tbc25-acc focus-visible:outline-offset-4 after:content-[''] after:absolute after:inset-x-0 after:-bottom-1 after:h-[2.5px] after:rounded-[2px] after:bg-tbc25-acc after:scale-x-0 after:origin-right after:transition-transform after:duration-350 after:ease-[cubic-bezier(0.25,1,0.5,1)] after:[filter:drop-shadow(0_0_5px_var(--color-tbc25-acc))] hover:after:scale-x-100 hover:after:origin-left focus-visible:after:scale-x-100 focus-visible:after:origin-left motion-reduce:after:transition-none">Journal</a></li>
<li class="flex items-center before:content-['/'] before:mx-3.5 before:text-tbc25-sep"><a href="#" class="relative px-0.25 py-0.75 text-[15px] font-semibold text-tbc25-link no-underline transition-colors duration-200 hover:text-white focus-visible:text-white focus-visible:outline-2 focus-visible:outline-tbc25-acc focus-visible:outline-offset-4 after:content-[''] after:absolute after:inset-x-0 after:-bottom-1 after:h-[2.5px] after:rounded-[2px] after:bg-tbc25-acc after:scale-x-0 after:origin-right after:transition-transform after:duration-350 after:ease-[cubic-bezier(0.25,1,0.5,1)] after:[filter:drop-shadow(0_0_5px_var(--color-tbc25-acc))] hover:after:scale-x-100 hover:after:origin-left focus-visible:after:scale-x-100 focus-visible:after:origin-left motion-reduce:after:transition-none">Typography</a></li>
<li class="flex items-center before:content-['/'] before:mx-3.5 before:text-tbc25-sep"><a href="#" aria-current="page" class="relative px-0.25 py-0.75 text-[15px] font-semibold text-white no-underline cursor-default focus-visible:outline-2 focus-visible:outline-tbc25-acc focus-visible:outline-offset-4 after:content-[''] after:absolute after:inset-x-0 after:-bottom-1 after:h-[2.5px] after:rounded-[2px] after:bg-tbc25-acc after:scale-x-100 after:origin-left after:[filter:drop-shadow(0_0_5px_var(--color-tbc25-acc))]">Variable Fonts</a></li>
</ol>
</nav>
</section><section class="tbc-25 w-full min-h-svh grid place-items-center bg-tbc25-bg font-tbc25-sans px-8 py-8">
<nav aria-label="Breadcrumb">
<ol class="flex flex-wrap items-center list-none m-0 p-0">
<li class="flex items-center"><a href="#" class="relative px-0.25 py-0.75 text-[15px] font-semibold text-tbc25-link no-underline transition-colors duration-200 hover:text-white focus-visible:text-white focus-visible:outline-2 focus-visible:outline-tbc25-acc focus-visible:outline-offset-4 after:content-[''] after:absolute after:inset-x-0 after:-bottom-1 after:h-[2.5px] after:rounded-[2px] after:bg-tbc25-acc after:scale-x-0 after:origin-right after:transition-transform after:duration-350 after:ease-[cubic-bezier(0.25,1,0.5,1)] after:[filter:drop-shadow(0_0_5px_var(--color-tbc25-acc))] hover:after:scale-x-100 hover:after:origin-left focus-visible:after:scale-x-100 focus-visible:after:origin-left motion-reduce:after:transition-none">Home</a></li>
<li class="flex items-center before:content-['/'] before:mx-3.5 before:text-tbc25-sep"><a href="#" class="relative px-0.25 py-0.75 text-[15px] font-semibold text-tbc25-link no-underline transition-colors duration-200 hover:text-white focus-visible:text-white focus-visible:outline-2 focus-visible:outline-tbc25-acc focus-visible:outline-offset-4 after:content-[''] after:absolute after:inset-x-0 after:-bottom-1 after:h-[2.5px] after:rounded-[2px] after:bg-tbc25-acc after:scale-x-0 after:origin-right after:transition-transform after:duration-350 after:ease-[cubic-bezier(0.25,1,0.5,1)] after:[filter:drop-shadow(0_0_5px_var(--color-tbc25-acc))] hover:after:scale-x-100 hover:after:origin-left focus-visible:after:scale-x-100 focus-visible:after:origin-left motion-reduce:after:transition-none">Journal</a></li>
<li class="flex items-center before:content-['/'] before:mx-3.5 before:text-tbc25-sep"><a href="#" class="relative px-0.25 py-0.75 text-[15px] font-semibold text-tbc25-link no-underline transition-colors duration-200 hover:text-white focus-visible:text-white focus-visible:outline-2 focus-visible:outline-tbc25-acc focus-visible:outline-offset-4 after:content-[''] after:absolute after:inset-x-0 after:-bottom-1 after:h-[2.5px] after:rounded-[2px] after:bg-tbc25-acc after:scale-x-0 after:origin-right after:transition-transform after:duration-350 after:ease-[cubic-bezier(0.25,1,0.5,1)] after:[filter:drop-shadow(0_0_5px_var(--color-tbc25-acc))] hover:after:scale-x-100 hover:after:origin-left focus-visible:after:scale-x-100 focus-visible:after:origin-left motion-reduce:after:transition-none">Typography</a></li>
<li class="flex items-center before:content-['/'] before:mx-3.5 before:text-tbc25-sep"><a href="#" aria-current="page" class="relative px-0.25 py-0.75 text-[15px] font-semibold text-white no-underline cursor-default focus-visible:outline-2 focus-visible:outline-tbc25-acc focus-visible:outline-offset-4 after:content-[''] after:absolute after:inset-x-0 after:-bottom-1 after:h-[2.5px] after:rounded-[2px] after:bg-tbc25-acc after:scale-x-100 after:origin-left after:[filter:drop-shadow(0_0_5px_var(--color-tbc25-acc))]">Variable Fonts</a></li>
</ol>
</nav>
</section>@import "tailwindcss";
@theme {
--color-tbc25-bg: #1c1a26;
--color-tbc25-bg: oklch(0.16 0.02 300);
--color-tbc25-link: #cbc4d6;
--color-tbc25-link: oklch(0.82 0.02 300);
--color-tbc25-sep: #6d6580;
--color-tbc25-sep: oklch(0.5 0.02 300);
--color-tbc25-acc: #c78ef0;
--color-tbc25-acc: oklch(0.72 0.17 300);
--font-tbc25-sans: 'Space Grotesk', system-ui, sans-serif;
}
.tbc-25 {
width: 100%;
min-height: 100svh;
}@import "tailwindcss";
@theme {
--color-tbc25-bg: #1c1a26;
--color-tbc25-bg: oklch(0.16 0.02 300);
--color-tbc25-link: #cbc4d6;
--color-tbc25-link: oklch(0.82 0.02 300);
--color-tbc25-sep: #6d6580;
--color-tbc25-sep: oklch(0.5 0.02 300);
--color-tbc25-acc: #c78ef0;
--color-tbc25-acc: oklch(0.72 0.17 300);
--font-tbc25-sans: 'Space Grotesk', system-ui, sans-serif;
}
.tbc-25 {
width: 100%;
min-height: 100svh;
}Setup — do this once per project
Skip this if your project already runs Tailwind v4.
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>Compiles in the browser — perfect for a CodePen or a quick test, not for production.
npm install tailwindcss @tailwindcss/vite
npm install tailwindcss @tailwindcss/vite// vite.config.js ("type": "module" in package.json)
import { defineConfig } from 'vite'
import tailwindcss from '@tailwindcss/vite'
export default defineConfig({
plugins: [tailwindcss()],
})// vite.config.js ("type": "module" in package.json)
import { defineConfig } from 'vite'
import tailwindcss from '@tailwindcss/vite'
export default defineConfig({
plugins: [tailwindcss()],
})Any v4 setup works — Vite, PostCSS or the CLI. Nothing in this demo is bundler-specific.
@import "tailwindcss";
@theme {
--color-tbc25-bg: #1c1a26;
--color-tbc25-bg: oklch(0.16 0.02 300);
--color-tbc25-link: #cbc4d6;
--color-tbc25-link: oklch(0.82 0.02 300);
--color-tbc25-sep: #6d6580;
--color-tbc25-sep: oklch(0.5 0.02 300);
--color-tbc25-acc: #c78ef0;
--color-tbc25-acc: oklch(0.72 0.17 300);
--font-tbc25-sans: 'Space Grotesk', system-ui, sans-serif;
}
.tbc-25 {
width: 100%;
min-height: 100svh;
}@import "tailwindcss";
@theme {
--color-tbc25-bg: #1c1a26;
--color-tbc25-bg: oklch(0.16 0.02 300);
--color-tbc25-link: #cbc4d6;
--color-tbc25-link: oklch(0.82 0.02 300);
--color-tbc25-sep: #6d6580;
--color-tbc25-sep: oklch(0.5 0.02 300);
--color-tbc25-acc: #c78ef0;
--color-tbc25-acc: oklch(0.72 0.17 300);
--font-tbc25-sans: 'Space Grotesk', system-ui, sans-serif;
}
.tbc-25 {
width: 100%;
min-height: 100svh;
}<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap">What changed in the port
Which parts became utilities, which stayed CSS, and why.
- Resting origin and hover origin sit two utilities apart on one element, which is the shortest honest description of a directional wipe. In CSS they were in separate rules and the direction had to be inferred.
- The glow stays an arbitrary
filter. Tailwind'sdrop-shadow-*scale is tuned for cards, not for a 2.5px accent bar. - UI change from the CSS original: the original set
outline:noneon:focus-visibleand relied on the underline. This version keeps a real outline AND lights the underline — the underline is a nice-to-have, not an indicator.
Here's a working CSS demo from CodeFronts. Use it as-is or adapt to your framework. All classes are scoped under a unique prefix so the code won't collide with your existing styles. MIT licensed.
Demo: Tailwind Breadcrumb Links with Animated Underline Glow
Source: https://codefronts.com/navigation/tailwind-css-breadcrumbs/tailwind-breadcrumb-links-animated-underline-glow/
A dark minimal trail where each link grows a glowing underline that wipes in from the left and retracts to the right — one pseudo-element, a transform-origin flip, and a drop-shadow for the glow. Entirely compositor-driven, and the current crumb keeps its underline lit.
## HTML
```html
<section class="tbc-25 w-full min-h-svh grid place-items-center bg-tbc25-bg font-tbc25-sans px-8 py-8">
<nav aria-label="Breadcrumb">
<ol class="flex flex-wrap items-center list-none m-0 p-0">
<li class="flex items-center"><a href="#" class="relative px-0.25 py-0.75 text-[15px] font-semibold text-tbc25-link no-underline transition-colors duration-200 hover:text-white focus-visible:text-white focus-visible:outline-2 focus-visible:outline-tbc25-acc focus-visible:outline-offset-4 after:content-[''] after:absolute after:inset-x-0 after:-bottom-1 after:h-[2.5px] after:rounded-[2px] after:bg-tbc25-acc after:scale-x-0 after:origin-right after:transition-transform after:duration-350 after:ease-[cubic-bezier(0.25,1,0.5,1)] after:[filter:drop-shadow(0_0_5px_var(--color-tbc25-acc))] hover:after:scale-x-100 hover:after:origin-left focus-visible:after:scale-x-100 focus-visible:after:origin-left motion-reduce:after:transition-none">Home</a></li>
<li class="flex items-center before:content-['/'] before:mx-3.5 before:text-tbc25-sep"><a href="#" class="relative px-0.25 py-0.75 text-[15px] font-semibold text-tbc25-link no-underline transition-colors duration-200 hover:text-white focus-visible:text-white focus-visible:outline-2 focus-visible:outline-tbc25-acc focus-visible:outline-offset-4 after:content-[''] after:absolute after:inset-x-0 after:-bottom-1 after:h-[2.5px] after:rounded-[2px] after:bg-tbc25-acc after:scale-x-0 after:origin-right after:transition-transform after:duration-350 after:ease-[cubic-bezier(0.25,1,0.5,1)] after:[filter:drop-shadow(0_0_5px_var(--color-tbc25-acc))] hover:after:scale-x-100 hover:after:origin-left focus-visible:after:scale-x-100 focus-visible:after:origin-left motion-reduce:after:transition-none">Journal</a></li>
<li class="flex items-center before:content-['/'] before:mx-3.5 before:text-tbc25-sep"><a href="#" class="relative px-0.25 py-0.75 text-[15px] font-semibold text-tbc25-link no-underline transition-colors duration-200 hover:text-white focus-visible:text-white focus-visible:outline-2 focus-visible:outline-tbc25-acc focus-visible:outline-offset-4 after:content-[''] after:absolute after:inset-x-0 after:-bottom-1 after:h-[2.5px] after:rounded-[2px] after:bg-tbc25-acc after:scale-x-0 after:origin-right after:transition-transform after:duration-350 after:ease-[cubic-bezier(0.25,1,0.5,1)] after:[filter:drop-shadow(0_0_5px_var(--color-tbc25-acc))] hover:after:scale-x-100 hover:after:origin-left focus-visible:after:scale-x-100 focus-visible:after:origin-left motion-reduce:after:transition-none">Typography</a></li>
<li class="flex items-center before:content-['/'] before:mx-3.5 before:text-tbc25-sep"><a href="#" aria-current="page" class="relative px-0.25 py-0.75 text-[15px] font-semibold text-white no-underline cursor-default focus-visible:outline-2 focus-visible:outline-tbc25-acc focus-visible:outline-offset-4 after:content-[''] after:absolute after:inset-x-0 after:-bottom-1 after:h-[2.5px] after:rounded-[2px] after:bg-tbc25-acc after:scale-x-100 after:origin-left after:[filter:drop-shadow(0_0_5px_var(--color-tbc25-acc))]">Variable Fonts</a></li>
</ol>
</nav>
</section>
```
## CSS
```css
@import "tailwindcss";
@theme {
--color-tbc25-bg: #1c1a26;
--color-tbc25-bg: oklch(0.16 0.02 300);
--color-tbc25-link: #cbc4d6;
--color-tbc25-link: oklch(0.82 0.02 300);
--color-tbc25-sep: #6d6580;
--color-tbc25-sep: oklch(0.5 0.02 300);
--color-tbc25-acc: #c78ef0;
--color-tbc25-acc: oklch(0.72 0.17 300);
--font-tbc25-sans: 'Space Grotesk', system-ui, sans-serif;
}
.tbc-25 {
width: 100%;
min-height: 100svh;
}
```Here's a working CSS demo from CodeFronts. Use it as-is or adapt to your framework. All classes are scoped under a unique prefix so the code won't collide with your existing styles. MIT licensed.
Demo: Tailwind Breadcrumb Links with Animated Underline Glow
Source: https://codefronts.com/navigation/tailwind-css-breadcrumbs/tailwind-breadcrumb-links-animated-underline-glow/
A dark minimal trail where each link grows a glowing underline that wipes in from the left and retracts to the right — one pseudo-element, a transform-origin flip, and a drop-shadow for the glow. Entirely compositor-driven, and the current crumb keeps its underline lit.
## HTML
```html
<section class="tbc-25 w-full min-h-svh grid place-items-center bg-tbc25-bg font-tbc25-sans px-8 py-8">
<nav aria-label="Breadcrumb">
<ol class="flex flex-wrap items-center list-none m-0 p-0">
<li class="flex items-center"><a href="#" class="relative px-0.25 py-0.75 text-[15px] font-semibold text-tbc25-link no-underline transition-colors duration-200 hover:text-white focus-visible:text-white focus-visible:outline-2 focus-visible:outline-tbc25-acc focus-visible:outline-offset-4 after:content-[''] after:absolute after:inset-x-0 after:-bottom-1 after:h-[2.5px] after:rounded-[2px] after:bg-tbc25-acc after:scale-x-0 after:origin-right after:transition-transform after:duration-350 after:ease-[cubic-bezier(0.25,1,0.5,1)] after:[filter:drop-shadow(0_0_5px_var(--color-tbc25-acc))] hover:after:scale-x-100 hover:after:origin-left focus-visible:after:scale-x-100 focus-visible:after:origin-left motion-reduce:after:transition-none">Home</a></li>
<li class="flex items-center before:content-['/'] before:mx-3.5 before:text-tbc25-sep"><a href="#" class="relative px-0.25 py-0.75 text-[15px] font-semibold text-tbc25-link no-underline transition-colors duration-200 hover:text-white focus-visible:text-white focus-visible:outline-2 focus-visible:outline-tbc25-acc focus-visible:outline-offset-4 after:content-[''] after:absolute after:inset-x-0 after:-bottom-1 after:h-[2.5px] after:rounded-[2px] after:bg-tbc25-acc after:scale-x-0 after:origin-right after:transition-transform after:duration-350 after:ease-[cubic-bezier(0.25,1,0.5,1)] after:[filter:drop-shadow(0_0_5px_var(--color-tbc25-acc))] hover:after:scale-x-100 hover:after:origin-left focus-visible:after:scale-x-100 focus-visible:after:origin-left motion-reduce:after:transition-none">Journal</a></li>
<li class="flex items-center before:content-['/'] before:mx-3.5 before:text-tbc25-sep"><a href="#" class="relative px-0.25 py-0.75 text-[15px] font-semibold text-tbc25-link no-underline transition-colors duration-200 hover:text-white focus-visible:text-white focus-visible:outline-2 focus-visible:outline-tbc25-acc focus-visible:outline-offset-4 after:content-[''] after:absolute after:inset-x-0 after:-bottom-1 after:h-[2.5px] after:rounded-[2px] after:bg-tbc25-acc after:scale-x-0 after:origin-right after:transition-transform after:duration-350 after:ease-[cubic-bezier(0.25,1,0.5,1)] after:[filter:drop-shadow(0_0_5px_var(--color-tbc25-acc))] hover:after:scale-x-100 hover:after:origin-left focus-visible:after:scale-x-100 focus-visible:after:origin-left motion-reduce:after:transition-none">Typography</a></li>
<li class="flex items-center before:content-['/'] before:mx-3.5 before:text-tbc25-sep"><a href="#" aria-current="page" class="relative px-0.25 py-0.75 text-[15px] font-semibold text-white no-underline cursor-default focus-visible:outline-2 focus-visible:outline-tbc25-acc focus-visible:outline-offset-4 after:content-[''] after:absolute after:inset-x-0 after:-bottom-1 after:h-[2.5px] after:rounded-[2px] after:bg-tbc25-acc after:scale-x-100 after:origin-left after:[filter:drop-shadow(0_0_5px_var(--color-tbc25-acc))]">Variable Fonts</a></li>
</ol>
</nav>
</section>
```
## CSS
```css
@import "tailwindcss";
@theme {
--color-tbc25-bg: #1c1a26;
--color-tbc25-bg: oklch(0.16 0.02 300);
--color-tbc25-link: #cbc4d6;
--color-tbc25-link: oklch(0.82 0.02 300);
--color-tbc25-sep: #6d6580;
--color-tbc25-sep: oklch(0.5 0.02 300);
--color-tbc25-acc: #c78ef0;
--color-tbc25-acc: oklch(0.72 0.17 300);
--font-tbc25-sans: 'Space Grotesk', system-ui, sans-serif;
}
.tbc-25 {
width: 100%;
min-height: 100svh;
}
```How this works
The origin flip is the whole trick. Scaling from right at rest and left on hover means the bar enters from the left and leaves to the right — motion that reads as direction rather than as a pulse. Both halves are utilities on the same element, which is the clearest possible statement of the effect.
Glow needs a filter. box-shadow on a 2.5px bar produces a hard halo; drop-shadow follows the alpha and blooms. It stays arbitrary because it is a tuned visual, not a scale value.
Scale transforms are free. Nothing here touches layout, so the animation runs on the compositor at any trail length.
Make it yours
- Bar:
after:h-[2.5px]andafter:-bottom-1. - Glow: the blur radius in the drop-shadow, or delete the filter for a flat underline.
- Easing:
after:ease-[cubic-bezier(0.25,1,0.5,1)]is a fast-out settle; a plainease-outreads more neutral.
Gotchas — read before shipping
- The link needs
relative, or the underline positions against the list. - Do not remove the focus outline in favour of the underline alone — a 2.5px accent bar on dark ground is not a sufficient focus indicator; both ship here.
motion-reduce:after:transition-nonekeeps the underline appearing instantly rather than not at all.
Browser support
| Chrome | Safari | Firefox | Edge |
|---|---|---|---|
| 111+ | 16.4+ | 128+ | 111+ |
Transforms, pseudo-elements and drop-shadow() are universally supported; the floor is Tailwind v4's own generated sheet.