laoshi kanakn
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>2-9</title>
<style type="text/css">
div {
font-family: Arial;
font-size: 72px;
font-weight: bold;
position: fixed;
right: 0;
left: 0;
bottom:40px;
width: 30px;
height: 30px;
margin: auto;
transform: rotate(90deg);
/*此处写代码*/
animation:down 1s ease-in-out 0.5s infinite normal forwards running;
}
@keyframes down {
from {bottom:40px;}
to {bottom:15px;}
from {bottom:15px;}
to {bottom:20px;}
from {bottom:20px;}
to {bottom:15px;}
}
</style>
</head>
<body>
<div>></div>
</body>
</html>0
收起
正在回答
1回答
同学你好, 代码效果实现了, 不过设置动画帧里面的语法不符合规范, 建议: 可以使员工百分比设置具体动画帧的效果哦, 参考下图写法

如果帮助到了你, 欢迎采纳!
祝学习愉快~~~~
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星