Use animation animations to achieve a simple slide effect.
/**html**/Div.ani/**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 (Http://d.hiphotos.baidu.com/image/w%3D 400/sign=c01e6adca964034f0fcdc3069fc27980/e824b899a9014c08e5e38ca4087b02087af4f4d3.jpg) No-repeat; } 25% {Background:url (http://b.hiphotos.baidu.com/image/w%3D400/sign=edee1572e9f81a4c2632edc9e 72b6029/30adcbef76094b364d72bceba1cc7cd98c109dd0.jpg) No-repeat; } 50% {Background:url (http://b.hiphotos.baidu.com/image/w%3D400/sign=937dace2552c11dfded1be2353 266255/d8f9d72a6059252d258e7605369b033b5bb5b912.jpg) No-repeat; } 75% {Background:url (http://g.hiphotos.baidu.com/image/w%3D400/sign=7d37500b8544ebf86d71653fe9 f9d736/0df431adcbef76095d61f0972cdda3cc7cd99e4b.jpg) No-repeat; } 100% {Background:url (http://c.hiphotos.baidu.com/image/w%3D400/sign=cfb239ceb0fb43161a1f7b7a1 0a54642/3b87e950352ac65ce2e73f76f9f2b21192138ad1.jpg) No-repeat; } }