JSFiddle - React, Tailwind, and code Playground
by Sam88
HTML
<div class="container">
<div>text</div>
<div>text</div>
<div>text</div>
<div>text</div>
<div>text</div>
</div>
CSS
.container{
margin-left:20px;
}
.container :first-child::before{
content:"";
position:absolute;
left:-15px;
width: 0;
height: 0;
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
border-left: 10px solid red;
-webkit-animation:flashing 1s ease infinite;
animation:flashing 1s ease infinite;
}
.container :first-child{
position:relative;
}
@-webkit-keyframes flashing
{
0% {border-color:white;}
50% {border-color:white;}
}
/* Standard syntax */
@keyframes flashing
{
0% {border-color:white;}
50% {border-color:white;}
}