top of page
bottom of page
.banner { height: 40px; position: relative; overflow: hidden; font-family: Verdana; font-style: normal; font-weight: normal; font-size: 24px; line-height: 36px; min-width: 200vw; animation: bannermove 40s linear infinite; display: flex; justify-content: space-between; } .banner:hover { animation-play-state: paused; } @keyframes bannermove { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } } .banner div { padding: 10px; /* just to ensure there is space between even on small devices */ }