Menu

by Torwan

HTML

<div class='hexagon'>
  <ul>
    <li class='polygon_top'>
      <a href="https://tympanus.net/codrops/2013/07/30/google-nexus-website-menu/" target="_blank">nexus menu</a>
    </li>
    <li class='polygon_top'></li>
    <li class='polygon_top'>
      <a href="https://tympanus.net/Development/ResponsiveMultiLevelMenu/index.html" target="_blank">Respmenu</a>
    </li>
    <li class='polygon_bottom'>
      <a href="https://tympanus.net/codrops/2013/08/28/transitions-for-off-canvas-navigations/" target="_blank">transition menu</a>
    </li>
    <li class='polygon_bottom'></li>
    <li class='polygon_bottom'>
      <a href="https://tympanus.net/codrops/2013/05/23/tooltip-menu/" target="_blank">tooltip menu</a>
    </li>
  </ul>
  <p>Hover me!</p>
</div>


<div class='hexagon2'>
  <ul>
    <li class='polygon_top'>
      <a href="https://tympanus.net/codrops/2013/08/09/building-a-circular-navigation-with-css-transforms/" target="_blank">nexus menu</a>
    </li>
    <li class='polygon_top'></li>
    <li class='polygon_top'>
      <a href="#" target="_blank">XXX</a>
    </li>
    <li class='polygon_bottom'>
      <a href="#" target="_blank">XXX</a>
    </li>
    <li class='polygon_bottom'></li>
    <li class='polygon_bottom'>
      <a href="#" target="_blank">XXX</a>
    </li>
  </ul>
  <p>Hover me!</p>
</div>

CSS

@import url(http://fonts.googleapis.com/css?family=Lato:300);

html,
body {
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  background: #404853;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
}

a {
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  width: 100%;
}

li {
  list-style-type: none;
}

/*=================================== container 
*/

.hexagon {
  position: absolute;
  top: 50%;
  left: 20%;
  margin-top: -30px;
  margin-left: -30px;
  width: 60px;
  transform-origin: center;
  transform: scale(1.00005); /* hack Firefox smooth edge */
}

.hexagon2 {
  position: absolute;
  top: 50%;
  left: 70%;
  margin-top: -30px;
  margin-left: -30px;
  width: 60px;
  transform-origin: center;
  transform: scale(1.00005); /* hack Firefox smooth edge */
}
/*=================================== top and bottom triangle
*/

.polygon_top,
.polygon_bottom {
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  position: absolute;
  width: 0;
  height: 0;
  transition: width 0.3s ease-in-out, border 0.1s linear, border-radius 0.5s ease-in-out;
}

.polygon_top a,
.polygon_bottom a {
  color: rgba(55, 55, 55, 0);
  display: block;
  font-size: 0em;
  text-transform: uppercase;
  width: 100%;
  transition: color, font-size 0.3s;
}

.polygon_top:nth-child(1),
.polygon_top:nth-child(3),
.polygon_bottom:nth-child(4),
.polygon_bottom:nth-child(6) {
  cursor: pointer;
}

.polygon_top:nth-child(1):hover > a,
.polygon_top:nth-child(3):hover > a,
.polygon_bottom:nth-child(4):hover > a,
.polygon_bottom:nth-child(6):hover > a {
  color: #373737;
  font-size: 1em;
}

.polygon_top:nth-child(1) {
  border-bottom: 30px solid #9b59b6;
  right: 0;
  transform: translateX(-30px) translateY(-15px);
}

.polygon_top:nth-child(1):hover {
  border-radius: 4px 0 0 4px;
  border-left: 18px solid #9b59b6;
  width: 120px;
  z-index: 100;
}
.polygon_top:nth-child(1) > a {
  line-height: 30px;
}

.polygon_top:nth-child(2) {
 ...