【代码】Fire Fox Logo 旋转动画

前言

Fire Fox Logo 旋转动画

源代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
* {
margin: 0px;
padding: 0px;
}

div {
width: 500px;
height: 500px;
background: url("./img/fire-fox-logo.png");
margin: 100px auto;
animation: donghua 5s linear 0s infinite;
}

@-webkit-keyframes donghua {
0% {
transform: rotate(0deg);
}
50% {
transform: rotate(360deg);
}
100% {
transform: rotate(360deg);
}
}
</style>
</head>
<body>

<div></div>

</body>
</html>

完成

参考文献

哔哩哔哩——web前端小清风