When hovering over each item, I want a triangle to appear underneath it. Currently, the triangle is displaying correctly, but there's also an extra triangle showing up at the bottom. I'm not sure why this is happening and I can't figure out how to fix it. Any help or insight would be greatly appreciated. Here's the code I'm using:
.wrapper_icons {
list-style: none;
display: flex;
justify-content: space-between;
padding-left: 0;
}
.wrapper_icons li {
border-bottom: 4px solid black;
flex: 3;
margin-right: 20px;
}
li:after {
content: '';
position: absolute;
top: 100%;
left: 50%;
width: 0;
height: 0;
border: solid transparent;
margin-left: -11px;
border-width: 11px;
border-top-color: rgba(0, 0, 0, 0.2);
}
.wrapper_icons li:hover {
cursor: pointer;
cursor: hand;
}
.sink {
display: inline-block;
-webkit-transition-duration: 0.3s;
transition-duration: 0.3s;
-webkit-transition-property: -webkit-transform;
transition-property: transform;
}
.sink:hover {
-webkit-transform: translateY(5px);
-ms-transform: translateY(5px);
transform: translateY(5px);
}
<ul class="wrapper_icons">
<li class="sink">Lorem ipsum</li>
<li class="sink">Lorem ipsum</li>
<li class="sink">Lorem ipsum</li>
</ul>