css部分
/* 资质荣誉滚动 */
ry_bot{width:100%;height:530px;margin:auto; background-color:#ed141f;clera:both;} 外面的div 用于控制这块。根据需要更改数据
.ry_bot_box{
width: 1200px;
height: 500px;
margin: 40px auto;
overflow: hidden;
position: relative;
}
.imgList {
animation:rolling 18s linear infinite;
position: absolute;
display: flex;
}
.imgList img {
width:280px;
height: 360px;
float: left;
margin-top:20px;
margin-right: 10px;
}
@keyframes rolling {
from {
transform: translateX(0);
}
to {
transform: translateX(-50%);
}
}