Infinite Scrolling Text Animation with HTML & CSS only

Here’s the easiest way to build Inifinite maquee scroller with HTML+CSS only. Easy to use for Elementor, Custom HTML Website animations for Call to action blocks.

Easy to implement code

HTML :

<div class="scroll-bar">
  <div class="scroll-items">
   <span>Schedule <i>a call</i> <span class="dot"></span></span>
   <span>Schedule <i>a call</i> <span class="dot"></span></span>
   <span>Schedule <i>a call</i> <span class="dot"></span></span>
  </div>

  <div class="scroll-items" aria-hidden="true">
   <span>Schedule <i>a call</i> <span class="dot"></span></span>
   <span>Schedule <i>a call</i> <span class="dot"></span></span>
   <span>Schedule <i>a call</i> <span class="dot"></span></span>
  </div>
</div>

CSS :

.scroll-bar {
   display: flex;
   overflow: hidden;
   user-select: none;
   gap: 4rem;
   padding-top: 0.5rem;
   padding-bottom: 0.5rem;
   font-family: "Questrial";
   background: #0b0b1d;
}

.scroll-items {
   flex-shrink: 0;
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 4rem;
   min-width: 100%;
   animation: scroll 45s linear infinite;
}

@keyframes scroll {
   0% {
    transform: translateX(0);
   }
   100% {
    transform: translateX(calc(-100% - 4rem));
   }
}

.scroll-items span {
   font-size: 5vw;
   font-weight: 500;
   white-space: nowrap;
   display: flex;
   align-items: center;
   color: #ffffff;
   transition: all 0.5s ease;
}

.scroll-bar:hover span {
   color: #32dd9f;
}

.scroll-items span.dot {
   width: 0.4rem;
   height: 0.4rem;
   background: #0b0b1d;
   border-radius: 50%;
   border: 10px solid #ffffff;
   display: inline-block;
   margin-left: 4.5rem;
   transition: all 0.5s ease;
}

.scroll-bar:hover span.dot {
   border-color: #32dd9f;
}

LIVE PREVIEW :

Schedule a call Schedule a call Schedule a call