一 实现背景图循环播放

@keyframes mlfly {
                0%{
                    background-position:0 0;
                }
                100%{
                    background-position:210px 0;
                }
            } 
            .ele-man{
                width:70px;
                position:absolute;
                top: 30px;
                left:50%;
                margin-left:-35px;
                background-image: url("m1-man.32@2x.png");
                background-size:210px 163px;
                height:163px;
                -webkit-transform-style: preserve-3d;
                transform-style: preserve-3d;
                animation:mlfly .2s steps(3,start) .5s infinite alternate;
            }
    </style>
</head>
<body>
    <div class="ele-man"></div>
</body>

css3 背景图动画一

实现火箭火苗动的效果 实际背景图有三个
css3 背景图动画一


通过循环播放三个背景图达到动画效果

 

相关文章:

  • 2022-12-23
  • 2021-09-26
  • 2021-09-27
  • 2022-12-23
  • 2021-05-21
  • 2021-09-24
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
  • 2022-01-19
  • 2022-12-23
  • 2021-12-28
  • 2022-01-01
相关资源
相似解决方案