This tutorial shows the CSS animation ticker tape of images example. The meaning of ticker tape of images is to show horizontally scrolling images after a specified time. And in the below example it is done using pure CSS. Grab the HTML and CSS code below:
CSS Code For Animation Ticker Table of Images
@keyframes ticker-kf { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-108rem, 0, 0); } } .img-ticker { animation: ticker-kf 18s linear infinite; }
HTML Code To Setup The Images
<!-- Wrap the slider in div with overflow hidden to hide scrollbars --> <div class="overflow-hidden"> <!-- The slider itself is a flex grid --> <div class="flex -mx-4 img-ticker"> <!-- Original set of images --> <!-- Each image is a grid column with width 16rem (w-64) and horiztonal margin 1rem (mx-4) --> <img class="w-64 mx-4 self-start flex-none" src="https://via.placeholder.com/256x341/f4ccccff/434343?text=1"> <img class="w-64 mx-4 self-start flex-none" src="https://via.placeholder.com/256x192/f4ccccff/434343?text=2"> <img class="w-64 mx-4 self-start flex-none" src="https://via.placeholder.com/256x341/f4ccccff/434343?text=3"> <img class="w-64 mx-4 self-start flex-none" src="https://via.placeholder.com/256x192/f4ccccff/434343?text=4"> <img class="w-64 mx-4 self-start flex-none" src="https://via.placeholder.com/256x341/f4ccccff/434343?text=5"> <img class="w-64 mx-4 self-start flex-none" src="https://via.placeholder.com/256x192/f4ccccff/434343?text=6"> <!-- Copy set of images --> <img class="w-64 mx-4 self-start flex-none" src="https://via.placeholder.com/256x341/f4ccccff/434343?text=1"> <img class="w-64 mx-4 self-start flex-none" src="https://via.placeholder.com/256x192/f4ccccff/434343?text=2"> <img class="w-64 mx-4 self-start flex-none" src="https://via.placeholder.com/256x341/f4ccccff/434343?text=3"> <img class="w-64 mx-4 self-start flex-none" src="https://via.placeholder.com/256x192/f4ccccff/434343?text=4"> <img class="w-64 mx-4 self-start flex-none" src="https://via.placeholder.com/256x341/f4ccccff/434343?text=5"> <img class="w-64 mx-4 self-start flex-none" src="https://via.placeholder.com/256x192/f4ccccff/434343?text=6"> </div> </div>
See the live demo.