请问如何用setTimeout做个动画。比如说我做个右移的动画,如何能让它在移动400点之后停止?
1 回答

ITMISS
TA贡献1871条经验 获得超8个赞
.anim{ width:200px; height:50px; background-color:#ff0; transition:all 3s ease; }.anim:hover{ transform:translateX(90px); } <div class="anim"> </div>
添加回答
举报
0/150
提交
取消