2-22编程练习

来源:3-1 @keyframes

卡Kami蜜

2017-10-13 10:31:10

<!DOCTYPE html>
<html lang="en">
<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;
width: 30px;
height: 30px;
margin: auto;
transform: rotate(90deg);
/*此处写代码*/
bottom: 300px;
animation: go_down 1s both infinite;
}
       @keyframes go_down {
           0%{}
           30%{transform: translateY(30px) rotate(90deg)}
           50%{transform: translateY(20px) rotate(90deg)}
           70%{transform: translateY(30px) rotate(90deg)}
       }
   </style>
</head>
<body>
<div>&gt;</div>
</body>
</html>

写回答

1回答

好帮手慕糖

2017-10-13

你好,效果实现的没有问题哟,继续加油!

祝学习愉快~

0

0 学习 · 5760 问题

查看课程