-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
76 lines (74 loc) · 1.56 KB
/
index.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
71
72
73
74
75
76
<html>
<body>
<style>
body {
background: grey;
}
.container {
width:50vw;
height: 50vw;
position: relative;
margin:auto;
border-radius: 100%;
overflow: hidden;
}
.green {
position: absolute;
top: 0;
left: 0;
width: 50%;
height: 50%;
background: rgb(0,255,0);
opacity: 0.5;
}
.red {
position: absolute;
top: 0;
right: 0;
width: 50%;
height: 50%;
background: rgb(255,0,0);
opacity: 0.5;
}
.yellow {
position: absolute;
bottom: 0;
left: 0;
width: 50%;
height: 50%;
background: rgb(255,255,0);
opacity: 0.5;
}
.blue {
position: absolute;
bottom: 0;
right: 0;
width: 50%;
height: 50%;
background: rgb(0,0,255);
opacity: 0.5;
}
.center {
position: absolute;
border-radius: 100%;
background: black;
left:50%;
width: 50%;
height: 50%;
top:50%;
transform: translate3d(-50%, -50%, 0);
}
.active {
opacity: 1;
}
</style>
<div class="container">
<div id="green" class="green"></div>
<div id="red" class="red"></div>
<div id="yellow" class="yellow"></div>
<div id="blue" class="blue"></div>
<div id="center" class="center"></div>
</div>
<script type="text/javascript" src="./index.js"></script>
</body>
</html>