JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.6/css/all.css">
<div id="top_news" class="top_fade mincho2">
<ul>
<span class="top_postlist_date"><i class="fab fa-twitter"></i></span>
<li class="su-post"><span class="marquee su-post2"><a href="#"><span class="top_postlist_date">03/05</span>記事タイトル3</a></span></li>
<span class="top_postlist_date"><i class="fab fa-twitter"></i></span>
<li class="su-post"><span class="marquee su-post2"><a href="#"><span class="top_postlist_date">03/04</span>記事タイトル2</a></span></li>
<span class="top_postlist_date"><i class="fab fa-twitter"></i></span>
<li class="su-post"><span class="marquee su-post2"><a href="#"><span class="top_postlist_date">02/28</span>記事タイトル1</a></span></li>
</ul>
</div>
CSS
a{text-decoration: none;}
li{list-style:none;}
#top_news{
margin-left:150px;
text-align: left;
position: absolute;
bottom: 150px;
}
#top_news a{
color:#000;
}
#top_news ul li{
font-size: 0.8em;
margin-bottom: 0.2em;
}
@keyframes marquee {
from {
transform: translateX(-100%);
}
to {
transform: translateX(100%);
}
}
.marquee {
display: inline-block;
position: relative;
overflow: hidden;
/* line-height: 0.8em; */
}
.marquee::after {
content: "";
display: block;
width: 100%;
height: 85%;
position: absolute;
top: 0;
left: 0;
z-index: 1;
background:rgba(255, 0, 0, 0.7);
animation-name: marquee;
animation-timing-function:ease;
animation-duration: 2s;
animation-fill-mode: forwards;
}
JavaScript
$(function() {
$('.ani_1_2').hide();
$('.marquee p').hide();
setTimeout(function(){
$('.marquee p').fadeIn(200);
setTimeout(function(){
$('.ani_1_2').fadeIn(100);
},200);
},1000);
});