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)
Docker private image library Docker private image...
1. Arrange CSS in alphabetical order Not in alphab...
I recently encountered a problem when doing IM, a...
Use v-model to bind the paging information object...
This article uses an example to share with you a ...
The new official website is online, but the exper...
<br />For every ten thousand people who answ...
Below are some common parameters of /etc/my.cnf o...
After the changes: innodb_buffer_pool_size=576M -...
1. Download docker online yum install -y epel-rel...
pt-heartbeat When the database is replicated betw...
I recently helped someone with a project and the ...
There are many import methods on the Internet, an...
This article uses the deep learning framework ker...
This article shares the specific code of JavaScri...