Ajax Loader
HTML
<!-- 
1
<!-- 
2
autor: Marco Barría 
3
https://twitter.com/marco_bf
4
-->
5
 
6
<div class='hexagon'>
7
  <ul>
8
    <li class='polygon_top'>
9
      <a href="#">Cssdeck</a>
10
    </li>
11
    <li class='polygon_top'></li>
12
    <li class='polygon_top'>
13
      <a href="#">Dribbble</a>
14
    </li>
15
    <li class='polygon_bottom'>
16
      <a href="#">Forrst</a>
17
    </li>
18
    <li class='polygon_bottom'></li>
19
    <li class='polygon_bottom'>
20
      <a href="#">Twitter</a>
21
    </li>
22
  </ul>
23
  <p>Hover me!</p>
24
</div>
 
CSS
@import url(http://fonts.googleapis.com/css?family=Lato:300);
1
@import url(http://fonts.googleapis.com/css?family=Lato:300);
2
 
3
html,
4
body {
5
  min-height: 100%;
6
  -webkit-font-smoothing: antialiased;
7
}
8
 
9
body {
10
  background: #404853;
11
  font-family: 'Lato', sans-serif;
12
  font-weight: 300;
13
}
14
 
15
a {
16
  text-decoration: none;
17
}
18
 
19
ul {
20
  margin: 0;
21
  padding: 0;
22
  width: 100%;
23
}
24
 
25
li {
26
  list-style-type: none;
27
}
28
 
29
/*=================================== container 
30
*/
31
 
32
.hexagon {
33
  position: absolute;
34
  top: 50%;
35
  left: 50%;
36
  margin-top: -30px;
37
  margin-left: -30px;
38
  width: 60px;
39
  transform-origin: center;
40
  transform: scale(1.00005); /* hack Firefox smooth edge */
41
}
42
 
43
/*=================================== top and bottom triangle
44
*/
45
 
46
.polygon_top,
47
.polygon_bottom {
48
  border-left: 18px solid transparent;
49
  border-right: 18px solid transparent;
50
  position: absolute;
51
  width: 0;
52
  height: 0;
53
  transition: width 0.3s ease-in-out, border 0.1s linear, border-radius 0.5s ease-in-out;
54
}
55
 
56
.polygon_top a,
57
.polygon_bottom a {
58
  color: rgba(55, 55, 55, 0);
59
  display: block;
60
  font-size: 0em;
61
  text-transform: uppercase;
62
  width: 100%;
63
  transition: color, font-size 0.3s;
64
}
65
 
66
.polygon_top:nth-child(1),
67
.polygon_top:nth-child(3),
68
.polygon_bottom:nth-child(4),
69
.polygon_bottom:nth-child(6) {
70
  cursor: pointer;
71
}
72
 
73
.polygon_top:nth-child(1):hover > a,
74
.polygon_top:nth-child(3):hover > a,
75
.polygon_bottom:nth-child(4):hover > a,
76
.polygon_bottom:nth-child(6):hover > a {
77
  color: #373737;
78
  font-size: 1em;
79
}
80
 
81
.polygon_top:nth-child(1) {
82
  border-bottom: 30px solid #9b59b6;
83
  right: 0;
84
  transform: translateX(-30px) translateY(-15px);
85
}
86
 
87
.polygon_top:nth-child(1):hover {
88
  border-radius: 4px 0 0 4px;
89
  border-left: 18px solid #9b59b6;
90
  width: 120px;
91
  z-index: 100;
92
}
93
.polygon_top:nth-child(1) > a {
94
  line-height: 30px;
95
}
96
 
97
.polygon_top:nth-child(2) {
98
  border-bottom: 30px solid #d0b2dd;
99
  transform: translateX(12px) translateY(15px);
100
}
101
 
102
.polygon_top:nth-child(3) {
103
  border-bottom: 30px solid #b07cc6;
104
  left: 0;
105
  transform: translateX(30px) translateY(-15px);
106
}
107
 
108
.polygon_top:nth-child(3):hover {
109
  border-radius: 0 4px 4px 0;
110
  border-right: 18px solid #b07cc6;
111
  width: 120px;
112
  z-index: 100;
113
}
114
 
115
.polygon_top:nth-child(3) > a {
116
  text-align: right;
117
  line-height: 30px;
118
}
119
 
120
.polygon_bottom:nth-child(4) {
121
  border-top: 30px solid #dbc3e5;
122
  right: 0;
123
  transform: translateX(-30px) translateY(15px);
124
}
125
 
126
.polygon_bottom:nth-child(4):hover {
127
  border-radius: 4px 0 0 4px;
128
  border-left: 18px solid #dbc3e5;
129
  width: 120px;
130
  z-index: 100;
131
}
132
 
133
.polygon_bottom:nth-child(4) > a {
134
  text-align: left;
135
  line-height: 30px;
136
  margin-top: -30px;
137
}
138
 
139
.polygon_bottom:nth-child(5) {
140
  border-top: 30px solid #a66bbe;
141
  transform: translateX(12px) translateY(-15px);
142
}
143
 
144
.polygon_bottom:nth-child(6) {
145
  border-top: 30px solid #c6a0d5;
146
  transform: translateX(30px) translateY(15px);
147
}
148
 
149
.polygon_bottom:nth-child(6):hover {
150
  border-radius: 0 4px 4px 0;
151
  border-right: 18px solid #c6a0d5;
152
  width: 120px;
153
  z-index: 100;
154
}
155
 
156
.polygon_bottom:nth-child(6) > a {
157
  text-align: right;
158
  line-height: 30px;
159
  margin-top: -30px;
160
}
161
 
162
p{
163
  color: #666;
164
  cursor:default;
165
  font-size:0.8em;
166
  margin-top:5em;
167
  user-select: none;
168
}
 

Hexagon menu

CSSDeck G+