Underline Grow
A gradient underline grows from left to right on hover. Current page uses a solid accent line.
Underline Grow the 1st of 22 designs in the 22 CSS Breadcrumbs collection. The design is implemented in pure CSS — no JavaScript required. Copy the HTML and CSS panels below into your project. Because the demo is pure CSS, it works in any framework or templating engine you happen to use. The design honours prefers-reduced-motion and uses real semantic markup, so it ships accessibility-ready out of the box.
Live preview
The code
<nav class="bc-01" aria-label="Breadcrumb">
<ol class="bc-01__list">
<li class="bc-01__item"><a class="bc-01__link" href="javascript:void(0)">Home</a></li>
<li class="bc-01__item"><a class="bc-01__link" href="javascript:void(0)">Collections</a></li>
<li class="bc-01__item">
<a class="bc-01__link bc-01__link--cur" aria-current="page" href="javascript:void(0)"
>CSS Tabs</a
>
</li>
</ol>
</nav> .bc-01__list {
display: flex;
align-items: center;
list-style: none;
padding: 0;
margin: 0;
}
.bc-01__item {
display: flex;
align-items: center;
}
.bc-01__item + .bc-01__item::before {
content: "/";
padding: 0 12px;
color: rgba(255, 255, 255, 0.2);
font-size: 14px;
}
.bc-01__link {
position: relative;
font-size: 14px;
font-weight: 500;
color: rgba(255, 255, 255, 0.45);
text-decoration: none;
padding-bottom: 2px;
transition: color 0.25s;
}
.bc-01__link::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 2px;
border-radius: 1px;
background: linear-gradient(90deg, #8b7fff, #ff6b9d);
transform: scaleX(0);
transform-origin: left;
transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}
.bc-01__link:hover {
color: rgba(255, 255, 255, 0.85);
}
.bc-01__link:hover::after {
transform: scaleX(1);
}
.bc-01__link--cur {
color: #fff;
pointer-events: none;
}
.bc-01__link--cur::after {
background: #8b7fff;
transform: scaleX(1);
}