.slider{position:relative;height:200px;margin:0 auto;padding:0 auto;text-align:center}.slider ul{margin:0;padding:0;list-style:none}.slider ul li img{width:100%;margin:0 auto;padding:0 auto}.slider ul li{width:80%;position:absolute;top:0;right:0;animation-iteration-count:infinite;animation-duration:14s}.slider ul li:nth-child(1){animation-name:slider;animation-delay:-1s}.slider ul li:nth-child(2){animation-name:slider;animation-delay:6s;opacity:0}@keyframes slider{0%{opacity:0}50%{opacity:1}100%{opacity:0}}@media screen and (max-width:1024px){.slider{height:210px}.slider ul li{width:95%}}@media screen and (max-width:912px){.slider{height:180px}.slider ul li{width:100%;height:auto;position:absolute;top:0;left:0}}