-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathturbine.html
65 lines (64 loc) · 1.91 KB
/
turbine.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Turbine</title>
<style media="screen">
body{
background-color: #000;
margin-top:200px;
}
div{
margin: auto;
}
.turbine{
position: relative;
height: 20px;
width:200px;
background: #fff;
/*box-shadow: 10px 10px 0px 20px #000 inset;*/
/*box-shadow: 0 0 3px 2px rgba(121, 77, 255, 0.9), 0 0 5px 7px #fff;*/
border-radius: 10px 10px 10px 10px;
animation: spin 0.5s linear 3s infinite reverse,charged 2s;
animation-fill-mode: forwards;
}
.turbine::before{
position: absolute;
content: '';
height: 20px;
width:200px;
background: #fff;
transform: rotate(90deg);
border-radius: 10px 10px 10px 10px;
animation: charged 2s;
animation-fill-mode: forwards;
/*box-shadow: 0 0 3px 2px rgba(121, 77, 255, 0.9), 0 0 5px 7px #fff;*/
}
.turbine::after{
position: absolute;
content: '';
left: 48%;
top: 24%;
height:10px;
width: 10px;
border-radius: 100%;
background: #000;
}
@keyframes charged {
0%{box-shadow: 0 0 3px 2px rgba(121, 77, 255, 0.9), 0 0 2px 2px #fff;}
50%{box-shadow: 0 0 3px 2px rgba(121, 77, 255, 0.9), 0 0 3px 4px #fff;}
100%{box-shadow: 0 0 3px 2px rgba(121, 77, 255, 0.9), 0 0 5px 7px #fff;}
}
@keyframes spin {
0%{transform: rotate(0deg);}
50%{transform: rotate(180deg);}
50.0001%{transform: rotate(-180deg);}
100%{transform: rotate(0deg);}
}
</style>
</head>
<body>
<div class="turbine">
</div>
</body>
</html>