CSS Hiệu Ứng Thầy Trò Tây Du Ký Thỉnh Kinh



Demo

Chèn CSS dưới vào:
* {
padding: 0;
margin: 0;
list-style: none;
}
html,body {
height: 100%;
}
.main {
height: 100%;
width: 100%;
-webkit-background-size: cover;
background-size: cover;
overflow: hidden;
position: relative;
}
.main ul {
height: 100%;
width: 3920px;
position: absolute;
top: 0;
left: 0;
animation: dong 50s linear infinite;
}
@keyframes dong {
0% {
left: 0;
}
100% {
left: 1920px;
}
}
.main ul li {
height: 100%;
width: 100%;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiUjPjnPcHlbJH-dPLFYkYQJ4H1TdayxUdbK3VQ23BgqAQXu41BqNqKRxx2l0F5s4tXC5p3Pkh1MrickhtGWQuwB5gsgRPhqJeK2pV787qbcjNbAaNq2a3m4eX_KP7IjRuFv7NuEH70KE/s1600/2.jpg);
float: left;
margin-left: -2000px;
}
.wk {
z-index: 999;
width: 200px;
height: 180px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivopLU958jx2g6iwou39PiVlWLanCYCfxJ6GvhA0gJA5damBEK_aYdA6eLHpa1HIS_Z9SQ1EIOsyioSkxunWDcYVexpilKrR32yK76_jG1NK77ONgfBlgEwm5WCeHY0MAiY5m0gOqLLLY/s1600/west_01_3ca39fe.png) 0 0 no-repeat;
/*margin: 400px auto;*/
position: absolute;
top: 55%;
left: 20%;
animation: wkzou 1s steps(8) infinite;
}
@keyframes wkzou {
to {
background-position: -1600px 0;
}
}
.bj {
z-index: 999;
width: 200px;
height: 180px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgw-EGaR0Xjb95ljmM4TP8aL0jnf1QpueHNWX0COU7Ipa4t7wiIEXYqj9QSou_nkFloi0uCn5wQzvhyrEgGxYcJFKMP3g9Hdx7xA9bRYVfEE6dsUsQx0VWe48j2uoIHmErn5dqxlWFGvn4/s1600/west_02_47bad19.png) 0 0 no-repeat;
/*margin: 400px auto;*/
position: absolute;
top: 55%;
left: 35%;
animation: bjzou 1s steps(8) infinite;
}
@keyframes bjzou {
to {
background-position: -1600px 0;
}
}
.ts {
z-index: 999;
width: 170px;
height: 240px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDPW77rWLWaJ9aI4Gpi8F3glSYsdZVyhsLp_-f2HsJIoBpHMyMfJA6nAAn9wk86M360YPKH3YcR_Q3LJF5d-yxbjPFvS0tVbb4BR-5m9GNPmGCX3jH_Olt9ro5lK7_v2-gEYDg5U916BU/s1600/west_03_f962447.png) 0 0 no-repeat;
/*margin: 400px auto;*/
position: absolute;
top: 50%;
left: 50%;
animation: tszou 1s steps(8) infinite;
}
@keyframes tszou {
to {
background-position: -1360px 0;
}
}
.ss {
z-index: 999;
width: 210px;
height: 200px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEindyZYqWibwInv5iENDUZ9LWLE0NMdDZX1jCoXfJWwNZ9_T7skcX3UMWTTrPLUef3ZLxtXs1e0PJGJTDmM_IAp4czLaL8xchC7IGtOuUwIoeVZzhtqJJXXksJlFEe3J5etYLmIVZ5hLE8/s3200/west_04_6516d80.png) 0 0 no-repeat;
/*margin: 400px auto;*/
position: absolute;
top: 57%;
left: 62%;
animation: sszou 1s steps(8) infinite;
}
@keyframes sszou {
to {
background-position: -1680px 0;
}
}


Tiếp đó là đoạn code hiển thị:
<div class="wk"></div>
<div class="bj"></div>
<div class="ts"></div>
<div class="ss"></div>
<div class="main">
<ul>
<li></li>
<li></li>
</ul>
</div>
CÓ THỂ BẠN ĐANG TÌM