<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/tgrant54/pen/lBHwK?limit=all&page=35&q=nav" />
<link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css'><script src='https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js'></script>
<style class="cp-pen-styles">#mainB {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
background: url("http://grantcr.com/files/bg.png") 0 0;
z-index: -9000;
opacity: 0.98;
}
.bg {
background: url("http://grantcr.com/files/texture.png") 0 0;
height: 100%;
opacity: 0.99;
z-index: -7000;
}
.bg1 {
background: url("http://grantcr.com/files/bgg.png") 0 0;
height: 100%;
opacity: 0.95;
z-index: -7000;
}
.over {
background: url("http://grantcr.com/files/top.png") top center no-repeat;
position: fixed;
opacity: 0.8;
width: 100%;
top: -150px;
bottom: 90%;
z-index: 300;
height: 500px;
}
.dial {
width: 165px;
height: 165px;
border-radius: 50%;
position: relative;
display: block;
margin: auto auto;
top: 300px;
opacity: 0.9;
*zoom: 1;
filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FFC9CFD7', endColorstr='#FFB0B7C1');
background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2M5Y2ZkNyIvPjxzdG9wIG9mZnNldD0iNDYlIiBzdG9wLWNvbG9yPSIjMmIyZjNlIiBzdG9wLW9wYWNpdHk9IjAuOTciLz48c3RvcCBvZmZzZXQ9IjQ4JSIgc3RvcC1jb2xvcj0iIzJiMmYzZSIgc3RvcC1vcGFjaXR5PSIwLjk3Ii8+PHN0b3Agb2Zmc2V0PSI1MiUiIHN0b3AtY29sb3I9IiMyYjJmM2UiLz48c3RvcCBvZmZzZXQ9IjU1JSIgc3RvcC1jb2xvcj0iIzJiMmYzZSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2IwYjdjMSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==');
background-size: 100%;
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #c9cfd7), color-stop(46%, rgba(43, 47, 62, 0.97)), color-stop(48%, rgba(43, 47, 62, 0.97)), color-stop(52%, #2b2f3e), color-stop(55%, #2b2f3e), color-stop(100%, #b0b7c1));
background-image: -moz-linear-gradient(top, #c9cfd7 0%, rgba(43, 47, 62, 0.97) 46%, rgba(43, 47, 62, 0.97) 48%, #2b2f3e 52%, #2b2f3e 55%, #b0b7c1 100%);
background-image: -webkit-linear-gradient(top, #c9cfd7 0%, rgba(43, 47, 62, 0.97) 46%, rgba(43, 47, 62, 0.97) 48%, #2b2f3e 52%, #2b2f3e 55%, #b0b7c1 100%);
background-image: linear-gradient(to bottom, #c9cfd7 0%, rgba(43, 47, 62, 0.97) 46%, rgba(43, 47, 62, 0.97) 48%, #2b2f3e 52%, #2b2f3e 55%, #b0b7c1 100%);
z-index: 99999;
box-shadow: 2px 15px 15px 7px rgba(0, 0, 0, 0.3), -15px 2px 5px rgba(0, 0, 0, 0.2), 1px 10px 15px rgba(0, 0, 0, 0.5), 0px 10px 5px rgba(0, 0, 0, 0.7);
}
.dial .grad {
background: url("http://grantcr.com/files/dail.png") 0 0 no-repeat;
width: 165px;
z-index: 999;
height: 165px;
position: absolute;
top: 3px;
border-radius: 50%;
left: 3px;
opacity: 1;
}
.container {
width: 325px;
position: relative;
margin: 0 auto;
height: 100%;
}
.nav {
position: relative;
width: 100%;
top: 200px;
}
#nav li {
display: inline-block;
list-style-type: none;
float: left;
margin-right: 43px;
}
#nav li a {
cursor: pointer;
}
#nav li:nth-of-type(1) {
position: relative;
left: 10px;
}
#nav li:nth-of-type(1):after {
content: " ";
background: url("http://grantcr.com/files/circle.png") center center no-repeat;
position: absolute;
width: 10px;
height: 10px;
top: 7px;
left: 35px;
}
#nav li:nth-of-type(2) {
position: relative;
top: -85px;
left: -25px;
}
#nav li:nth-of-type(2):after {
content: " ";
background: url("http://grantcr.com/files/circle.png") center center no-repeat;
position: absolute;
width: 10px;
height: 10px;
left: 30px;
top: 25px;
}
#nav li:nth-of-type(3) {
position: relative;
top: -120px;
}
#nav li:nth-of-type(3):before {
content: " ";
background: url("http://grantcr.com/files/circle.png") center center no-repeat;
width: 10px;
height: 10px;
position: absolute;
top: 30px;
left: 12px;
}
#nav li:nth-of-type(4) {
position: relative;
top: -85px;
left: 25px;
}
#nav li:nth-of-type(4):before {
content: " ";
background: url("http://grantcr.com/files/circle.png") center center no-repeat;
width: 10px;
position: absolute;
height: 10px;
top: 25px;
left: -15px;
}
#nav li:nth-of-type(5) {
position: relative;
left: -15px;
top: -1px;
margin: 0;
}
#nav li:nth-of-type(5):before {
content: " ";
background: url("http://grantcr.com/files/circle.png") center center no-repeat;
position: absolute;
width: 10px;
height: 10px;
left: -17px;
top: 8px;
}
.active > a {
box-shadow: 0px 0px 100px 25px rgba(255, 255, 255, 0.2);
}
.r0 {
transition: all 1s ease;
transform: rotate(0deg);
}
.rr1 {
transition: all 1s ease;
transform: rotate(45deg);
}
.rr2 {
transition: all 1s ease;
transform: rotate(90deg);
}
.lr1 {
transition: all 1s ease;
transform: rotate(-45deg);
}
.lr2 {
transition: all 1s ease;
transform: rotate(-90deg);
}
</style></head><body>
<div id="mainB">
<div class="bg">
<div class="bg1">
</div>
</div>
</div>
<div class="over">
<div class="dial">
<div class="grad">
</div>
</div>
<div class="container">
<div class="nav">
<ul id="nav">
<li id="email">
<a>
<img src="http://grantcr.com/files/iemail.png" />
</a>
</li>
<li id="photo">
<a>
<img src="http://grantcr.com/files/iphoto.png" />
</a>
</li>
<li id="cloud" class="active">
<a>
<img src="http://grantcr.com/files/icloud.png" />
</a>
</li>
<li id="portfolio">
<a>
<img src="http://grantcr.com/files/portfolio.png" />
</a>
</li>
<li id="settings">
<a>
<img src="http://grantcr.com/files/settings.png" />
</a>
</li>
</ul>
</div>
</div>
</div>
<script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script><script src='//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script >
function doSwap() {
$("#nav li").each(function() {
if ($(this).hasClass("active")) {
swap($(this));
}
else {
swapBack($(this));
}
});
}
doSwap();
function clear(o) {
$("#nav li").each(function() {
$(this).removeClass("active");
});
}
$("#nav li").click(function() {
clear();
$(this).addClass("active");
doSwap();
rotate('.dial',$(this));
});
function rotate(m,o) {
var id = "#" + $(o).attr("id");
var menu = $(m);
menu.removeClass('r0 lr1 lr2 rr1 rr2');
if (id == "#email") {
menu.addClass("lr2");
}
if (id == "#photo") {
menu.addClass('lr1');
}
if (id == "#cloud") {
menu.addClass('r0');
}
if (id == "#portfolio") {
menu.addClass('rr1');
}
if (id == "#settings") {
menu.addClass('rr2');
}
}
function swap(o) {
var id = "#" + $(o).attr("id");
var cimg = new String;
var burl = "http://grantcr.com/files/",
ext = ".png"
cimg = id + " img";
console.log($(cimg).attr("src"));
if (id == "#email") {
var nimg = burl + "iemailh" + ext;
$(cimg).attr("src",nimg);
}
if (id == "#photo") {
var nimg = burl + "photosh" + ext;
$(cimg).attr("src",nimg);
}
if (id == "#cloud") {
var nimg = burl + "icloudh" + ext;
$(cimg).attr("src",nimg);
}
if (id == "#portfolio") {
var nimg = burl + "portfolioh" + ext;
$(cimg).attr("src",nimg);
}
if (id == "#settings") {
var nimg = burl + "settingsh" + ext;
$(cimg).attr("src",nimg);
}
}
function swapBack(o) {
var id = "#" + $(o).attr("id");
var cimg = new String;
var burl = "http://grantcr.com/files/",
ext = ".png"
cimg = id + " img";
console.log($(cimg).attr("src"));
if (id == "#email") {
var nimg = burl + "iemail" + ext;
$(cimg).attr("src",nimg);
}
if (id == "#photo") {
var nimg = burl + "iphoto" + ext;
$(cimg).attr("src",nimg);
}
if (id == "#cloud") {
var nimg = burl + "icloud" + ext;
$(cimg).attr("src",nimg);
}
if (id == "#portfolio") {
var nimg = burl + "portfolio" + ext;
$(cimg).attr("src",nimg);
}
if (id == "#settings") {
var nimg = burl + "settings" + ext;
$(cimg).attr("src",nimg);
}
}
//# sourceURL=pen.js
</script>
</body></html>