-
Notifications
You must be signed in to change notification settings - Fork 0
/
animate.html
63 lines (63 loc) · 1.7 KB
/
animate.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.box{
width: 75px;
height: 75px;
background-color: black;
border-radius: 50px;
animation: sunayan 5s ease-in-out 0s infinite;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 5px 15px 5px grey;
}
.box > span{
color: white;
}
@keyframes sunayan {
0%{
transform: rotate(0deg);
margin: 10px;
background-color: aqua;
}
10%{
transform: rotate(45deg);
margin-left: 100px;
margin-top: 0px;
background-color: blue;
}
25%{
transform: rotate(90deg);
margin-top: 100px;
margin-left: 100px;
background-color: red;
}
50%{
transform: rotate(180deg);
margin-left: 0px;
margin-top: 100px;
background-color: blueviolet;
}
75%{
transform: rotate(270deg);
margin-top: 200px;
}
100%{
transform: rotate(360deg);
/* margin-top: 0px; */
margin-bottom: 0px;
}
}
</style>
</head>
<body>
<div class="box">
<span>HELL</span>
</div>
</body>
</html>