bear.png
分析:
采用运动曲线steps(),一个大盒子里有张图片,这张图片有熊运动的每一帧,每次向x轴的负方向运动一步,steps(8),8步移动完整张图片
html代码
<body>
<div class="box"></div>
</body>
css代码
<style>
body {
background-color: #cccccc;
}
.box {
bear.png
分析:
采用运动曲线steps(),一个大盒子里有张图片,这张图片有熊运动的每一帧,每次向x轴的负方向运动一步,steps(8),8步移动完整张图片
html代码
<body>
<div class="box"></div>
</body>
css代码
<style>
body {
background-color: #cccccc;
}
.box {