Home > Web Front-end > HTML Tutorial > CSS3 implements simple slideshow_html/css_WEB-ITnose

CSS3 implements simple slideshow_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:39:08
Original
814 people have browsed it

<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>css3 幻灯片</title><style type="text/css">.ani {width: 480px;height: 320px;margin: 50px auto;overflow: hidden;box-shadow: 0 0 5px rgba(0, 0, 0, 1);background-size: cover;background-position: center;-webkit-animation-name: "loops";-webkit-animation-duration:20s;-webkit-animation-iteration-count: infinite;}@-webkit-keyframes "loops" {0% {background: url('img/1.jpg') no-repeat;}25% {background: url('img/2.jpg') no-repeat;}50% {background: url('img/3.jpg') no-repeat;}75% {background: url('img/4.jpg') no-repeat;}100% {background: url('img/5.jpg') no-repeat;}}</style></head><body><div class="ani"></div></body></html>
Copy after login

 

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template