<div class="container">
<div class="marquee">
<div class="marquee-items">
<p> 🍇🍇🍇 </p>
<p> 🍊🍊🍊 </p>
<p> 🍎🍎🍎 </p>
<p> 🍋🍋🍋 </p>
<p> 🍉🍉🍉 </p>
<p> 🍐🍐🍐 </p>
</div>
<div class="marquee-items">
<p> 🍇🍇🍇 </p>
<p> 🍊🍊🍊 </p>
<p> 🍎🍎🍎 </p>
<p> 🍋🍋🍋 </p>
<p> 🍉🍉🍉 </p>
<p> 🍐🍐🍐 </p>
</div>
</div>
</div>
.container {
background-color: black;
padding-top: 40px;
padding-bottom: 40px;
overflow: hidden;
}
.marquee-items {
width: 100%;
display: flex;
justify-content: space-around;
align-items: center;
}
.marquee {
display: flex;
width: 200%;
animation: marqueeSlide 20s linear infinite;
}
@keyframes marqueeSlide {
from { transform: translateX(0); }
to { transform: translateX(-50%); }
}
p {
color: white;
font-size: 30px;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.