-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path10.html
83 lines (71 loc) · 1.17 KB
/
10.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
.ab{
height: 100px;
width: 100px;
background: red;
animation: abcd 4s ease infinite;
position: absolute;
}
@keyframes abcd{
25%{
/* height: 0px;
width: 0px;*/
background: blue;
margin-left: 93%;
margin-top: 0px;
transform: rotate(360deg);
}
50%{
/* height: 50px;
width: 50px;*/
background: green;
margin-left: 93%;
margin-top: 600px;
transform: rotate(0deg);
}
75%{
/* height: 120px;
width: 120px;*/
background: yellow;
margin-left: 0%;
margin-top: 600px;
transform: rotate(360deg);
}
100%{
/* height: 30px;
width: 30px;*/
background: red;
margin-left: 0%;
margin-top: 0px;
transform: rotate(0deg);
}
}
.ac{
height: 200px;
width: 200px;
background: black;
position: absolute;
left: 50%;
top: 200px;
animation: rot 5s linear infinite;
transform-origin: 70% 30%;
}
@keyframes rot{
100%{
transform: rotate(360deg);
}
}
</style>
</head>
<body>
<div class="ab">
</div>
<div class="ac">
</div>
</body>
</html>