当前位置:   article > 正文

html图片铺底代码,梦幻西游底部师徒四人动态图

师徒四人取经html代码

[html]代码库

梦幻西游

body{

background-image: url(https://xyq.res.netease.com/pc/gw/20170118103441/img/ft2_7b14393.webp);

}

.footer{

width: 760px;

height: 300px;

/* 背景颜色 */

margin: 400px auto;/* 外边距 上下 左右 */

}

.west{

float: left;/* 浮动 */

width: 190px;

height: 240px;

background-repeat: no-repeat;

background-position-y:center;

}

.west:nth-child(1){

background-image: url(https://xyq.res.netease.com/pc/gw/20170118103441/img/west_01_3ca39fe.png);

background-position-x: 0px;/* -1600px */

animation: move1 1.4s steps(8) infinite;

}

.west:nth-child(2){

background-image: url(https://xyq.res.netease.com/pc/gw/20170118103441/img/west_02_47bad19.png);

background-position-x: 0px;/* -1600px */

animation: move2 1.4s steps(8) infinite;

}

.west:nth-child(3){

background-image: url(https://xyq.res.netease.com/pc/gw/20170118103441/img/west_03_f962447.png);

background-position-x: 0px;/* -1600px */

animation: move3 1.4s steps(8) infinite;

}

.west:nth-child(4){

background-image: url(https://xyq.res.netease.com/pc/gw/20170118103441/img/west_04_6516d80.png);

background-position-x: 0px;/* -1600px */

animation: move4 1.4s steps(8) infinite;

}

@keyframes move1{

0%{

background-position-x: 0px;

}

100%{

background-position-x: -1600px;

}

}

@keyframes move2{

0%{

background-position-x: 0px;

}

100%{

background-position-x: -1600px;

}

}

@keyframes move3{

0%{

background-position-x: 0px;

}

100%{

background-position-x: -1360px;

}

}

@keyframes move4{

0%{

background-position-x: 0px;

}

100%{

background-position-x: -1660px;

}

}

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/887396
推荐阅读
相关标签
  

闽ICP备14008679号