"nav cubic"
Bootstrap 3.0.0 Snippet by evarevirus

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html><html class=''> <head><script src='//production-assets.codepen.io/assets/editor/live/console_runner-079c09a0e3b9ff743e39ee2d5637b9216b3545af0de366d4b9aad9dc87e26bfd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/events_runner-73716630c22bbc8cff4bd0f07b135f00a0bdc5d14629260c3ec49e5606f98fdd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/css_live_reload_init-2c0dc5167d60a5af3ee189d570b1835129687ea2a61bee3513dee3a50c115a77.js'></script><meta charset='UTF-8'><meta name="robots" content="noindex"><link rel="shortcut icon" type="image/x-icon" href="//production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" /><link rel="mask-icon" type="" href="//production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" /><link rel="canonical" href="https://codepen.io/MitchES/pen/dRMQdx?limit=all&page=17&q=nav" /> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css'> <style class="cp-pen-styles">html, body, .container { width: 100%; height: 100%; margin: 0px; overflow: hidden; } .container { /*padding:150px;*/ background: #2F2F31; } #navMenu { top: 150px; left: 200px; width: 140px; height: 140px; z-index: 100; background: linear-gradient(90deg, #910EC9, #d350db, #910EC9); -webkit-background: linear-gradient(90deg, #910EC9, #d350db, #910EC9); background-size: 400% 400%; -webkit-background-size: 400% 400%; animation: gradient 5s infinite; -webkit-animation: gradient 5s infinite; } #navMenu:hover, .nav:hover { background: #d350db; } @keyframes gradient { 50% { background-position: 100% 0; } } @-webkit-keyframes gradient { 50% { background-position: 100% 0; } } .diamond { position: absolute; width: 67.5px; height: 67.5px; transform: rotate(45deg); -webkit-transform: rotate(45deg); background: #910EC9; margin: 10px; cursor: pointer; box-shadow: 1px 4px 10px #101010; } .diamond:active { background: #710b9e; box-shadow: 0px 1px 2.5px #101010; transition: 0.1s; -webkit-transition: 0.1s; } /*.popUp{ text-align:center; border-radius:10px 0px; position:absolute; top:100px; left:330px; overflow:hidden; background:red; width:0px; max-width:100px; } .#nav1:hover + .popUp{ width:100px; }*/ .nav { transition: 0.5s; -webkit-transition: 0.5s; } .nav1 { top: 86px; left: 287px; } .nav2 { top: 136px; left: 337px; } .nav3 { top: 186px; left: 387px; } .nav4 { top: 236px; left: 337px; } .nav5 { top: 286px; left: 287px; } .small { top: 186px; left: 236px; z-index: 10; background: #643fc1; transition: 0.5s; -webkit-transition: 0.5s; } .rotCorrect { transform: rotate(-45deg); -webkit-transform: rotate(-45deg); margin-left: 14px; margin-top: 8px; } #mainRotCorrect { margin-left: 26px; margin-top: 28px; transform: rotate(-45deg); -webkit-transform: rotate(-45deg); max-width: 90px; } i { color: #EEEEEE; } </style></head><body> <body> <div class="container"> <div id="navMenu" class="diamond"> <div id="mainRotCorrect" class="rotCorrect"><i class="fa fa-cubes fa-4x" aria-hidden="true"></i></div> </div> <div id="nav1" class="nav nav1 diamond"> <div class="rotCorrect"><i class="fa fa-home fa-2x" aria-hidden="true"></i></div> </div> <!--<div class="popUp">Home</div>--> <div id="nav2" class="nav nav2 diamond"> <div class="rotCorrect"><i class="fa fa-file-text-o fa-2x" aria-hidden="true"></i></div> </div> <div id="nav3" class="nav nav3 diamond"> <div class="rotCorrect"><i class="fa fa-calendar fa-2x" aria-hidden="true"></i></div> </div> <div id="nav4" class="nav nav4 diamond"> <div class="rotCorrect"><i class="fa fa-line-chart fa-2x" aria-hidden="true"></i></div> </div> <div id="nav5" class="nav nav5 diamond"> <div class="rotCorrect"><i class="fa fa-cogs fa-2x" aria-hidden="true"></i></div> </div> </div> </body> <script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script><script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script> <script >$(document).ready(function() { $("#navMenu").click(function() { //$(".nav").toggleClass("small"); if ($(".nav").hasClass("small")) { $(".nav").removeClass("small"); } else { $(".nav").addClass("small"); } }); }); //# sourceURL=pen.js </script> </body></html>

Related: See More


Questions / Comments: