<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.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 ---------->
<nav class="navbar navbar-fixed-left navbar-minimal animate" role="navigation">
<input type="checkbox" id="toggle-menu" class="panel-image-toggle">
<div class="navbar-status animate">
<span class="menu-icon"></span>
<label for="toggle-menu"></label>
</div>
<ul class="navbar-menu animate">
<li>
<a href="#about-us" class="animate">
<span class="glyphicon glyphicon-user"></span>
<span class="desc animate"> Who We Are </span>
</a>
</li>
<li>
<a href="#blog" class="animate">
<span class="glyphicon glyphicon-info-sign"></span>
<span class="desc animate"> What We Say </span>
</a>
</li>
<li>
<a href="#contact-us" class="animate">
<span class="glyphicon glyphicon-comment"></span>
<span class="desc animate"> How To Reach Us </span>
</a>
</li>
</ul>
</nav>
<!-- START OF HTML FOR DEMO - NOT NEEDED -->
<div class="container">
<div class="row">
<div class="col-sm-offset-3 col-sm-6 col-md-offset-4 col-md-4">
<h1 class="title">Minimal Menu</h1>
</div>
</div>
<div class="row">
<div class="col-sm-offset-3 col-sm-6 col-md-offset-4 col-md-4 white-background">
<p>Please keep in mind that this menu uses no javascript and may not work properly in all browsers. I have only tested it on chrome.</p>
<p><em><strong>ReliQ</strong></em> has confirmed this works for "Firefox". Thanks!</p>
<p>This menu was made in about 45 minutes so it is bound to have some bugs. Test it out and let me know what you think in the comments below.</p>
<p>To view this snippet in fullscreen click on the button in the top right hand corner or if you are in fullscreen click on the same button to return to Bootsnipp!</p>
<p>Alright now back to playing Watch Dogs and Wolfenstein: The New Order</p>
</div>
</div>
</div>
<a href="http://bootsnipp.com/iframe/PbDb5" class="btn btn-primary" id="fullscreen" data-toggle="tooltip" data-placement="left" title="Full Screen"><span class="glyphicon glyphicon-fullscreen"></span></a>
<!-- END OF HTML FOR DEMO - NOT NEEDED -->
/* START OF DEMO CSS - NOT NEEDED */
html, body { height: 100% } /* BODY BACKGROUND IMAGE DOESNT ALWAYS REACH THE BOTTOM OF THE BROWSER*/
body {
background-color: rgb(100, 100, 100);
background-image: url(http://s3.amazonaws.com/sitebuilderreport-assets/media/files/000/000/440/original/Old.jpg?1387493955);
background-repeat: no-repeat;
background-position: center center;
background-size: cover;
color: rgb(255, 255, 255);
}
.white-background {
background-color: rgb(255, 255, 255);
color: rgb(51, 51, 51);
padding-top: 10px;
border-radius: 4px;
}
.title {
font-size: 3em;
font-weight: 700;
text-shadow: 0px 0px 5px rgb(51, 51, 51);
text-shadow: 0px 0px 5px rgba(51, 51, 51, 0.8);
text-align: center;
}
#fullscreen {
position: fixed;
top: 10px;
right: 10px;
}
/* END OF DEMO CSS */
.animate {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
-ms-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}
.navbar-fixed-left {
position: fixed;
top: 0px;
left: 0px;
border-radius: 0px;
}
.navbar-minimal {
width: 60px;
min-height: 60px;
max-height: 100%;
background-color: rgb(51, 51, 51);
background-color: rgba(51, 51, 51, 0.8);
border-width: 0px;
z-index: 1000;
}
.navbar-minimal > input[type=checkbox] {
position: fixed;
top: -30px;
z-index: -1;
}
.navbar-minimal > .navbar-status {
position: relative;
min-height: 60px;
border-bottom: 1px solid rgb(81, 81, 81);
z-index: 100;
}
.navbar-minimal > input[type=checkbox]:checked ~ .navbar-status,
.navbar-minimal > .navbar-status:hover {
background-color: rgb(155, 200, 72);
}
.navbar-minimal > .navbar-status > label {
display: block;
position: absolute;
top: 0px;
left: 0px;
height: 100%;
width: 100%;
cursor: pointer;
}
.navbar-minimal > .navbar-status > span {
position: absolute;
top: 50%;
right: 50%;
margin: -8px -8px 0 0;
width: 16px;
height: 16px;
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNv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Zlbm9kZCIgZmlsbD0iI0ZGRkZGRiIgZD0iTTEsMmgxNGMwLjU1MiwwLDEsMC40NDgsMSwxcy0wLjQ0OCwxLTEsMUgxQzAuNDQ4LDQsMCwzLjU1MiwwLDMKCVMwLjQ0OCwyLDEsMnoiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiNGRkZGRkYiIGQ9Ik0xLjMzLDI4Ljk3bDExLjY0LTExLjY0YzAuNDU5LTAuNDU5LDEuMjA0LTAuNDU5LDEuNjYzLDAKCWMwLjQ1OSwwLjQ1OSwwLjQ1OSwxLjIwNCwwLDEuNjYzTDIuOTkzLDMwLjYzM2MtMC40NTksMC40NTktMS4yMDQsMC40NTktMS42NjMsMEMwLjg3MSwzMC4xNzQsMC44NzEsMjkuNDMsMS4zMywyOC45N3oiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiNGRkZGRkYiIGQ9Ik0yLjk5MywxNy4zM2wxMS42NDEsMTEuNjRjMC40NTksMC40NTksMC40NTksMS4yMDQsMCwxLjY2MwoJcy0xLjIwNCwwLjQ1OS0xLjY2MywwTDEuMzMsMTguOTkzYy0wLjQ1OS0wLjQ1OS0wLjQ1OS0xLjIwNCwwLTEuNjYzQzEuNzg5LDE2Ljg3MSwyLjUzNCwxNi44NzEsMi45OTMsMTcuMzN6Ii8+Cjwvc3ZnPgo=);
background-repeat: no-repeat;
background-position: 0 0;
-webkit-transition: -webkit-transform .3s ease-out 0s;
-moz-transition: -moz-transform .3s ease-out 0s;
-o-transition: -moz-transform .3s ease-out 0s;
-ms-transition: -ms-transform .3s ease-out 0s;
transition: transform .3s ease-out 0s;
-webkit-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
-ms-transform: rotate(0deg);
transform: rotate(0deg);
}
.navbar-minimal > input[type=checkbox]:checked ~ .navbar-status > span {
background-position: 0 -16px;
-webkit-transform: rotate(-180deg);
-moz-transform: rotate(-180deg);
-o-transform: rotate(-180deg);
-ms-transform: rotate(-180deg);
transform: rotate(-180deg);
}
.navbar-minimal > .navbar-menu {
position: absolute;
top: -1000px;
left: 0px;
margin: 0px;
padding: 0px;
list-style: none;
z-index: 50;
background-color: rgb(51, 51, 51);
background-color: rgba(51, 51, 51, 0.8);
}
.navbar-minimal > .navbar-menu > li > a,
.navbar-minimal > .navbar-menu > li > a > .desc {
position: relative;
display: inline-block;
color: rgb(255, 255, 255);
padding: 20px 23px;
text-align: center;
cursor: pointer;
border-bottom: 1px solid rgb(81, 81, 81);
}
.navbar-minimal > .navbar-menu > li > a:last-child,
.navbar-minimal > .navbar-menu > li > a:last-child > .desc {
border-bottom-width: 0px;
}
.navbar-minimal > .navbar-menu > li > a > .desc {
position: absolute;
top: 0px;
left: -160px;
width: 160px;
text-align: left;
}
.navbar-minimal > .navbar-menu > li > a:hover,
.navbar-minimal > .navbar-menu > li > a:hover > .desc {
background-color: rgb(155, 200, 72);
}
.navbar-minimal > .navbar-menu > li > a:hover > .desc {
left: 60px;
}
.navbar-minimal > input[type=checkbox]:checked ~ .navbar-menu {
top: 60px;
}
@media (min-width: 768px) {
.navbar-minimal {
min-height: 100%;
}
.navbar-minimal > .navbar-menu {
background-color: rgba(0, 0, 0, 0) !important;
}
.navbar-minimal > .navbar-menu > li > a:last-child,
.navbar-minimal > .navbar-menu > li > a:last-child > .desc {
border-bottom-width: 1px;
}
}
/* START OF DEMO JS - NOT NEEDED */
$(function () {
if (window.location == window.parent.location) {
$('#fullscreen').html('<span class="glyphicon glyphicon-resize-small"></span>');
$('#fullscreen').attr('href', 'http://bootsnipp.com/mouse0270/snippets/PbDb5');
$('#fullscreen').attr('title', 'Back To Bootsnipp');
}
$('#fullscreen').on('click', function(event) {
event.preventDefault();
window.parent.location = $('#fullscreen').attr('href');
});
$('#fullscreen').tooltip();
});
/* END DEMO OF JS - THAT IS RIGHT NO JAVASCRIPT NEEDED FOR THIS SNIPPET */