<div class="notice">
<div class="marquee animation">
<p class="tidings">
188**2555 成功邀请3人,<span>获得价值30元</span>1分钟前
</p>
<p class="tidings">
188**2555 成功邀请3人,<span>获得价值30元</span>1分钟前
</p>
</div>
</div>
/* 跑马灯 */
@keyframes marquee {
0% {
transform: translateX(0%);
}
100% {
transform: translateX(-100%);
}
}
.marquee {
// margin-top: 4%;
display: block;
// height: 7.46vw;
white-space: nowrap;
width: max-content;
padding-left: 100%;
}
.marquee.animation {
animation: marquee 40s linear infinite;
}
.tidings {
display: inline-block;
padding: 0 1.06vw;
margin: 0 3.36vw;
}
.tidings > img {
width: 5.33vw;
height: 5.33vw;
object-fit: cover;
display: inline-block;
vertical-align: middle;
border-radius: 50%;
}
.tidings > span {
color: #fcf39d;
}