-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
104 lines (96 loc) · 2.35 KB
/
style.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
* {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
background: #fafafa;
height: 100vh;
margin: 0;
padding: 0;
}
.wrapper {
height: 200px;
width: 200px;
border-radius: 50%;
-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.circle {
-webkit-box-sizing: border-box;
box-sizing: border-box;
height: 200px;
width: 200px;
border-radius: 50%;
padding-left: 50px;
background-image: -webkit-gradient(linear, right top, left top, from(#fff), color-stop(50%, #fff), color-stop(50%, #000), to(#000));
background-image: linear-gradient(to left, #fff, #fff 50%, #000 50%, #000);
-webkit-animation: roll 20s linear infinite;
animation: roll 20s linear infinite;
}
.yinyang {
position: relative;
background: #fff;
height: 100px;
width: 100px;
border-radius: 50%;
background-image: -webkit-gradient(linear, right top, left top, from(#fff), color-stop(50%, #fff), color-stop(50%, #000), to(#000));
background-image: linear-gradient(to left, #fff, #fff 50%, #000 50%, #000);
-webkit-animation: roll 4s linear infinite;
animation: roll 4s linear infinite;
animation-direction: reverse;
}
.yinyang::before {
content: "";
position: absolute;
top: 0;
left: 50%;
-webkit-transform: translate(-50%);
transform: translate(-50%);
background: #fff;
border: 18px solid #000;
border-radius: 50%;
width: 14px;
height: 14px;
}
.yinyang::after {
content: "";
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%);
transform: translate(-50%);
background: #000;
border: 18px solid #fff;
border-radius: 50%;
width: 14px;
height: 14px;
}
@-webkit-keyframes roll {
from {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-webkit-transform: rotate(-360deg);
transform: rotate(-360deg);
}
}
@keyframes roll {
from {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-webkit-transform: rotate(-360deg);
transform: rotate(-360deg);
}
}