JSFiddle - React, Tailwind, and code Playground
HTML
<h2 class="quotes quote1">first quote</h2>
<h2 class="quotes quote2">second quote</h2>
<h2 class="quotes quote3">third quote</h2>
CSS
.quotes{
opactiy:0;
transition: opacity .3s linear;
animation-duration:10s;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
.quote1{
animation-name: quote1;
}
.quote2{
animation-name: quote2;
}
.quote3{
animation-name: quote3;
}
@keyframes quote1{0%,45%,100%{opacity:1}50%,95%{opacity:0}}
@keyframes quote2{0%,10%{opacity:0}15%,45%{opacity:1}50%,100%{opacity:0}}
@keyframes quote3{0%,25%{opacity:0}30%,45%{opacity:1}50%,100%{opacity:0}}