css 动画效果:水平直线来回运动:animation

background: url(https://hao2.qhimg.com/t01b958e8662853d1c8.png) no-repeat;
    background-size: 119px 30px;
    color: #fff;
    display: inline-block;
    height: 30px;
    width: 119px;
    line-height: 27px;
    position: absolute;
    left: -115px;
    top: 2px;
    font-size: 12px;
    text-align: center;
    animation: ftslidein .8s linear 0s infinite alternate;

你可能感兴趣的:(css,前端)