Forum Academy Marketplace Showcase Pricing Features

How to implement scrolling text effect

here is how I implemented a scrolling text effect on my old waitlist page here

Find NoCode Info
note 100% sure on the original source for this method, possibly https://codepen.io/lewismcarey/pen/GJZVoG

<html>

    <style>
        /* (A) FIXED WRAPPER */
.hwrap {
  overflow: hidden; /* HIDE SCROLL BAR */
  background: #2F68F7;
}
 
/* (B) MOVING TICKER WRAPPER */
.hmove { display: flex; }

/* (C) ITEMS - INTO A LONG HORIZONTAL ROW */
.hitem {
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  text-align: center;
 color: #FFFFFF;
}
 
/* (D) ANIMATION - MOVE ITEMS FROM RIGHT TO LEFT */
/* 4 ITEMS -900%, CHANGE THIS IF YOU ADD/REMOVE ITEMS */
@keyframes tickerh {
  0% { transform: translate3d(100%, 0, 0); }
  100% { transform: translate3d(-300%, 0, 0); }
}
.hmove { animation: tickerh linear 15s infinite; }
.hmove:hover { animation-play-state: paused; }
    </style>
    
<body>
    
<div class="hwrap">
    <div class="hmove">
     <div class="hitem">Tweets,  Bubble Forum Posts,  Slack Threads,  Youtube Videos...</div>
     <div class="hitem">Course Links,  Bubble Docs, Newsletter Articles,  Loom Videos...</div>
     <div class="hitem">and more...</div>
	</div>
</div>

    
</body>
</html>
3 Likes