-
Notifications
You must be signed in to change notification settings - Fork 0
/
rotate.html
86 lines (86 loc) · 2.22 KB
/
rotate.html
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
*{
margin: 0;
padding: 0;
}
.main{
width: 100vw;
height: 100vh;
background-color: black;
display: grid;
place-items: center;
}
.box{
width: 60vw;
height: 60vh;
background-color: black;
display: grid;
place-items: center;
}
.gola{
height: 80px;
width: 80px;
background-color: black;
animation: rotate 4s linear infinite;
}
@keyframes rotate{
0%{
transform: rotate(0deg) scale(0,0);
background-color: rgb(252, 145, 252);
border-radius: 0%;
}
25%{
transform: rotate(90deg) scale(1,1);
background-color: rgb(45, 235, 45);
border-radius: 25%;
}
50%{
transform: rotate(180deg) scale(2,2);
background-color: rgb(106, 175, 240);
border-radius: 50%;
}
75%{
transform: rotate(270deg) scale(1,1);
background-color: rgba(245, 139, 19, 0.904);
border-radius: 25%;
}
100%{
transform: rotate(360deg) scale(0,0);
background-color: rgb(240, 220, 38);
border-radius: 0%;
}
}
@keyframes scale{
0%{
transform:scale(1,1);
}
25%{
transform:scale(2 ,2);
}
50%{
transform: scale(3 ,3)
}
75%{
transform: scale(2 ,2);
}
100%{
transform:scale(1 ,1);
}
}
</style>
</head>
<body>
<div class="main">
<div class="box">
<div class="gola"></div>
</div>
</div>
</body>
</html>