Ajax Loader
×
HTML
 
1
 
2
<input type="radio" name="menu" id="one"checked/>
3
<label for="one">Melodic &amp; Quiet</label>
4
<input type="radio" name="menu" id="two"/>
5
<label for="two">Fresh &amp; Festive</label>
6
<input type="radio" name="menu" id="three"/>
7
<label for="three">Deep &amp; Subtle</label>
8
<input type="radio" name="menu" id="four"/>
9
<label for="four">Dark &amp; Sink</label>
10
 
11
<div class="wheel">
12
  <div class="area one"></div>
13
  <div class="area two"></div>
14
  <div class="area four"></div>
15
  <div class="area three"></div>
16
</div>
 
CSS
body {background:#fff;
1
body {background:#fff;
2
  text-align:center;
3
}
4
 
5
input[type='radio'] {display:none;}
6
label {
7
  cursor:pointer;
8
  display:block;
9
  float:left;
10
  color:#fff;
11
  width:120px;
12
  margin:10px 3px 0 5px;
13
  padding:3px 10px;
14
  border-radius:5Px;
15
  text-align:center;
16
}
17
label[for="one"] {background:#1CABE7;}
18
label[for="two"] {background:#FE0000;}
19
label[for="three"] {background:#FDB128;}
20
label[for="four"] {background:#171717;}
21
 
22
 
23
.wheel {
24
  position:absolute;
25
  left:0;
26
  right:0;
27
  margin:100px auto;
28
  height:450px;
29
  width:450px;
30
  border-radius:218px;
31
  -webkit-transition:.5s;
32
  -moz-transition:.5s;
33
  -o-transition:.5s;
34
  transition:.5s;
35
}
36
 
37
.wheel:before {
38
  content:'';
39
  position:absolute;
40
  left:0;
41
  right:0;
42
  margin:97px auto;
43
  display:block;
44
  width:240px;
45
  height:240px;
46
  border-radius:400px;
47
  border:2px solid #fff;
48
  background:#fff;
49
}
50
 
51
.area {
52
  float:left;
53
  width:220px;
54
  height:220px;
55
  background:rgba(4,4,4,0.05);
56
  margin-right:2px;
57
  margin-bottom:2px;
58
  -webkit-transition:.5s;
59
  -moz-transition:.5s;
60
  -o-transition:.5s;
61
  transition:.5s;
62
}
63
.one {border-radius:450px 0 0 0;}
64
.two {border-radius:0 450px 0 0;}
65
.three {border-radius:0 0 450px 0;}
66
.four {border-radius:0 0 0 450px;}
67
#one:checked ~.wheel {
68
  -webkit-transform: rotate(-45deg);
69
}
70
#one:checked ~.wheel .one {
71
  background:#1CABE7;
72
}
73
#two:checked ~.wheel {
74
  -webkit-transform: rotate(-135deg);
75
}
76
#two:checked ~.wheel .two {
77
  background:#FE0000;
78
}
79
#three:checked ~.wheel {
80
  -webkit-transform: rotate(-225deg);
81
}
82
#three:checked ~.wheel .three {
83
  background:#FDB128;
84
}
85
#four:checked ~.wheel {
86
  -webkit-transform: rotate(-315deg);
87
}
88
#four:checked ~.wheel .four {
89
  background:#171717;
90
}
 

Untitled

CSSDeck G+