-
Notifications
You must be signed in to change notification settings - Fork 0
/
ball.html
45 lines (44 loc) · 1.22 KB
/
ball.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
<html>
<head>
<style>
div{
width: 300px;
height: 300px;
border-radius: 50%;
background-color: aquamarine;
animation-name: animate;
animation-duration: 3s;
animation-delay: 1s;
animation-direction: normal;
animation-iteration-count: infinite;
position: absolute;
text-align: center;
font-size: xx-large;
}
@keyframes animate{
/* from{
background-color: aquamarine;
}
to{
background-color: tomato;
} */
0%{
top: 0%;
left: 0%;
}
50%{
top: 100%;
left: 50%;
transform: rotate(180deg);
}
100%{
top: 0%;
left: 100%;
}
}
</style>
</head>
<body>
<div>HI</div>
</body>
</html>