-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshooting_star_1.html
70 lines (64 loc) · 1.07 KB
/
shooting_star_1.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title><title>Shooting star</title></title>
<style>
body{
background: #444;
}
.fixed_position{
position:absolute;
width:1px;
height: 12px;
/*background: red;*/
top:200px;
left:100px;
transform:rotate(-45deg);
}
.shooting_star{
position: absolute;
height: 6px;
width:20px;
background: white;
border-radius: 100%;
animation-name: star;
animation-iteration-count:infinite;
animation-duration: 10s;
animation-fill-mode:backwards;
}
.shooting_star::after{
content: "";
position: absolute;
left: 15px;
height: 0px;
border-left: 150px solid white;
border-top: 3px solid transparent;
border-bottom: 3px solid transparent;
}
@keyframes star {
100% {
left:-200px;
opacity: 0;
}
99%{
opacity: 0;
}
90% {
left:300px;
opacity: 1;
}
0%{
left:300px;
opacity: 1;
}
}
</style>
</head>
<body>
<div class="fixed_position">
<div class="flash_star"></div>
</div>
</body>
</html>