<div class="marquee__wrapper">
<div class="marquee__arrow"><svg width="84" height="83" viewBox="0 0 84 83" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M42.0002 0.16634L83.3335 41.4997L42.0002 82.833L34.6377 75.5997L63.571 46.6663L0.666835 46.6663L0.666836 36.333L63.571 36.333L34.6377 7.39967L42.0002 0.16634Z" fill="white"/>
</svg>
</div>
<div class="marquee marquee--borders" style="--duration: 20s">
<div class="marquee__group">
<p>Creative Strategy</p>
<p aria-hidden="true">Creative Strategy</p>
<p aria-hidden="true">Creative Strategy</p>
</div>
<div aria-hidden="true" class="marquee__group">
<p>Creative Strategy</p>
<p>Creative Strategy</p>
<p>Creative Strategy</p>
</div>
</div>
</div>
@import url("https://fonts.googleapis.com/css2?family=Corben:wght@700&display=swap");
* {
box-sizing: border-box;
}
body {
background: #000;
--space: 10rem;
display: grid;
align-content: center;
overflow: hidden;
gap: var(--space);
width: 100%;
font-family: "Helvetica", system-ui, sans-serif;
font-size: 1.5rem;
line-height: 1.5;
}
.marquee__wrapper {
display: flex;
align-item:scenter;
}
.marquee__arrow {
width: 12rem;
height: 12rem;
border-radius: 100%;
display; flex;
justify-content: center;
border: 1px solid #fff;
position: relative;
margin-right: 1rem;
}
.marquee__arrow svg {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%)
}
.marquee {
--duration: 60s;
--gap: var(--space);
border-radius: 4rem;
width: calc(100vw - 16rem);
display: flex;
overflow: hidden;
user-select: none;
gap: var(--gap);
}
.marquee__group {
flex-shrink: 0;
display: flex;
color: #fff;
font-size: 7rem;
text-transform: uppercase;
align-items: center;
justify-content: space-around;
gap: var(--gap);
min-width: 100%;
animation: scroll var(--duration) linear infinite;
}
.marquee__group p {
margin: 0.05rem 0;
}
@media (prefers-reduced-motion: reduce) {
.marquee__group {
animation-play-state: paused;
}
}
.marquee--borders {
border: 1px solid #fff;
padding-block: 0;
}
.marquee--reverse .marquee__group {
animation-direction: reverse;
animation-delay: calc(var(--duration) / -2);
}
@keyframes scroll {
0% {
transform: translateX(0);
}
100% {
transform: translateX(calc(-100% - var(--gap)));
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.