JSFiddle - React, Tailwind, and code Playground
HTML
<ul>
<li class="right-arrow">
<a href="#">Link with</a>
</li>
<li class="right-arrow">
<a href="#">Link with Right Arrow</a>
</li>
</ul>
CSS
.right-arrow {
width: 100px;
background-color: orange;
margin: 10px;
position: relative;
padding:15px;
list-style:none;
}
.right-arrow:after, .right-arrow:before {
content: "";
position: absolute;
left: 100%;
width: 20px;
height: 50%;
}
.right-arrow:before {
top: 0px;
background: linear-gradient(to top right, green 50%, transparent 51%);
}
.right-arrow:after {
bottom: 0px;
background: linear-gradient(to bottom right, green 50%, transparent 51%);
}
.right-arrow:hover:after, .right-arrow:hover:before {
width: 40px;
}