How would you create a stepper like this? I tried recreating those with clip-path but only managed to make them horizontal not vertical. I've tried many thing but at the time of writing this, this code is the latest try I've made I need it to be before an li so I tried with the ::before
but the arrow pointed to the right and looked more like a play button more than anything.
Snippet
.wrapper {
height: 100vh;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.steps {
position: relative;
height: 80%;
width: 75%;
.step {
height: 80px;
display: flex;
align-items: center;
&::before {
content: "";
background: red;
height: 110%;
width: 15px;
margin: 0 2rem;
clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 100%, 25% 50%, 0% 50%);
}
}
}
<div class="steps">
<div class="step">
<p class="step-text">This is a step</p>
</div>
<div class="step">
<p class="step-text">This is a step</p>
</div>
<div class="step">
<p class="step-text">This is a step</p>
</div>
</div>
</div>
`/`
`, or just something that visually looks like a list?
– DBS Mar 07 '23 at 10:07