-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathturbine.css
62 lines (62 loc) · 1.83 KB
/
turbine.css
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
/*------------------Turbine-----------------*/
.turbine-container{
height: 210px;
width: 210px;
position: absolute;
top:0px;
left:300px;
/*border:1px solid #fff;*/
}
.turbine{
position: absolute;
height: 20px;
top:95px;
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: start-turbine 0.5s linear 7s infinite reverse,
charged 0.5s linear 7s infinite reverse,spin 0.5s linear 8s infinite reverse,
animation-fill-mode: forwards;*/
animation: start-turbine 1.5s linear 6.6s 1 normal,charged 0.5s linear 6.6s 1 reverse,spin 0.5s linear 8.1s infinite reverse;
animation-fill-mode: forwards;
transform: rotate(-26deg);
}
@keyframes start-turbine {
0%{transform: rotate(-26deg);}
100%{transform: rotate(-360deg);}
}
@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);}
}
.turbine::before{
position: absolute;
content: '';
height: 20px;
width:200px;
background: #fff;
transform: rotate(90deg);
border-radius: 10px 10px 10px 10px;
animation: charged 0.5s linear 6.6s 1 reverse;
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;
}