JSFiddle - React, Tailwind, and code Playground
by meeky333
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Breadcrumb Navigation</title>
<style>
.breadcrumb {
list-style: none;
display: flex;
background: #333;
border-radius: 5px;
overflow: hidden;
font-family: sans-serif;
}
.breadcrumb li {
text-align: center;
color: white;
padding: 10px 20px;
position: relative;
background: #555;
cursor: pointer;
transition: background 0.3s ease;
}
.breadcrumb li:hover {
background: #777;
}
.breadcrumb li.active {
background: #ff5434;
}
.breadcrumb li::after {
content: '';
position: absolute;
top: 0;
right: -15px;
width: 0;
height: 0;
border-top: 20px solid transparent;
border-bottom: 20px solid transparent;
border-left: 15px solid #555;
z-index: 10;
transition: border-left-color 0.3s ease;
}
.breadcrumb li:hover::after {
border-left-color: #777;
}
.breadcrumb li.active::after {
border-left-color: #ff5434;
}
/* Hide the right arrow for the last item */
.breadcrumb li:last-child::after {
content: none;
}
</style>
</head>
<body>
<ul class="breadcrumb">
<li class="active">Step 1</li>
<li>Step 2</li>
<li>Step 3</li>
</ul>
</body>
</html>