Achieve resultsImplementation Codehtml <base href="https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/"> <div id="slider"> <figure> <img src="austin-fireworks.jpg" alt> <img src="taj-mahal_copy.jpg" alt> <img src="ibiza.jpg" alt> <img src="ankor-wat.jpg" alt> <img src="austin-fireworks.jpg" alt> </figure> </div> CSS3 @keyframes slidy { 0% { left: 0%; } 20% { left: 0%; } 25% { left: -100%; } 45% { left: -100%; } 50% { left: -200%; } 70% { left: -200%; } 75% { left: -300%; } 95% { left: -300%; } 100% { left: -400%; } } body { margin: 0; } div#slider { overflow: hidden; } div#slider figure img { width: 20%; float: left; } div#slider figure { position: relative; width: 500%; margin: 0; left: 0; text-align: left; font-size: 0; animation: 5s slidy infinite; } otherIf you have requirements for switching speed, just modify the last time of CSS3 The above is the details of the image scrolling effect created by CSS3. For more information about CSS3 image scrolling, please pay attention to other related articles on 123WORDPRESS.COM! |
>>: Detailed examples of using JavaScript event delegation (proxy)
This article shares the installation and configur...
1. Common connections for mysql INNER JOIN (inner...
In the horizontal direction, you can set the alig...
Sometimes you need to debug remotely in a server ...
The format of textarea can be saved to the databas...
html , address , blockquote , body , dd , div , d...
Table of contents Introduction Instructions Actua...
Table of contents 1. Common higher-order function...
After I published my last article “Zen Coding: A Q...
This article shares with you how to use thinkphp5...
Preface Swap is a special file (or partition) loc...
#docker ps check, all ports are mapped CONTAINER ...
In the previous article, I introduced the detaile...
Starting from IE 8, IE added a compatibility mode,...