JSFiddle - React, Tailwind, and code Playground
HTML
<ul class="usp__list">
<li class="usp__item">
Item 1
</li>
<li class="usp__item">
Item 2
</li>
<li class="usp__item">
Item 3
</li>
<li class="usp__item">
Item 4
</li>
</ul>
CSS
@keyframes fadein {
0% {
opacity: 0;
}
66% {
opacity: 0;
}
76% {
opacity: 1;
}
100% {
opacity: 1;
}
}
li {
list-style: none;
padding: 0;
font-size: 40px;
position: absolute;
width: 100%;
opacity: 0;
}
li:nth-of-type(1) {
animation: fadein 6s ease-in-out -4s infinite alternate;
}
li:nth-of-type(2) {
animation: fadein 6s ease-in-out 0s infinite alternate;
}
li:nth-of-type(3) {
animation: fadein 6s ease-in-out 4s infinite alternate;
}
li:nth-of-type(4) {
animation: fadein 6s ease-in-out 8s infinite alternate;
}