Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"nav"
Bootstrap 3.0.0 Snippet by
evarevirus
3.0.0
Preview
HTML
CSS
View Full Screen
Fork
Fork this
656
 
0 Fav
Post to Facebook
Tweet this
<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 ----------> <header class="slk-right"> <div class="container"> <div class="col-xs-6 col-md-4"> <div id="logo"> <a href="/">Silk Menu</a> </div> </div> <div class="col-xs-6 col-md-8"> <div class="slk-menu-items visible-xs visible-sm"> <a class="slk-menu-trigger" href="javascript:void(0)"> <span></span> <span></span> <span></span> </a> <a href="/"><i class="fa fa-phone"></i></a> <a href="/"><i class="fa fa-user"></i></a> <div class="clearfix"></div> </div> <nav class="slk-main-nav"> <ul class="nav nav-pills"> <li><a href="/">Home</a></li> <li><a href="/">About Us</a></li> <li><a href="/">Blog</a></li> <li><a href="/">Shop Now</a></li> <li><a href="/">Cat Videos</a></li> <li><a href="/">Contact</a></li> </ul> </nav> </div> </div> </header> <main> <h1>Created By: <a target="_blank" href="http://amitkashokkamble.com">Amit Ashok Kamble</a></h1> </main> <script> var _header = $("header"), _slkMmenu = $(".slk-main-nav"), _slkMenuTrigger = $(".slk-menu-trigger"), _slkOpenClass = "slk-open", _slkOpenLeft = $(".slk-left"); $(document).ready(function() { _slkMenuTrigger.toggle(function() { _header.addClass(_slkOpenClass) }, function() { _header.removeClass(_slkOpenClass) }) }); </script>
* { border-radius: 0px !important; font-family: 'Arvo', serif; outline: none !important; } html, body { background-color: rgba(46, 46, 51, 0.1); } header { padding: 10px 0; background: white; box-shadow: 0 -1px 1px 1px #2e2e33; background-color: white; } header #logo a { color: #2e2e33; display: block; font-size: 25px; padding: 2px 0; } h1 { position: fixed; right: 20px; bottom: 5px; font-size: 12px; color: #777783; } .slk-main-nav { transition: all 0.25s ease-in-out 0s; } .slk-main-nav ul li { border-bottom: 2px solid transparent; transition: all 0.25s ease-in-out 0s; } .slk-main-nav ul li:hover { border-bottom: 2px solid #2e2e33; } .slk-main-nav ul li a { background: none !important; color: #2e2e33; display: block; font-size: 16px; font-weight: bold; padding: 10px 20px; text-transform: uppercase; } .slk-menu-items a { display: block; float: right; font-size: 31px; height: 30px; line-height: 33px; margin-left: 15px; position: relative; width: 40px; color: #2e2e33 !important; } .slk-menu-items .slk-menu-trigger { transition: all 0.25s ease-in-out 0s; } .slk-menu-items .slk-menu-trigger span { width: 40px; height: 40px; background: #2e2e33; display: block; height: 4px; left: 0; margin: auto; pointer-events: none; position: absolute; right: 0; transition: all 0.25s ease-in-out 0s; } .slk-menu-items .slk-menu-trigger span:nth-child(1) { top: 0; } .slk-menu-items .slk-menu-trigger span:nth-child(2) { top: 50%; transform: translateY(-50%); } .slk-menu-items .slk-menu-trigger span:nth-child(3) { bottom: 0px; } .slk-open .slk-menu-trigger { transform: rotate(90deg); } .slk-open .slk-menu-trigger span:nth-child(1) { transform: rotate(45deg) translateY(10px) translateX(10px); } .slk-open .slk-menu-trigger span:nth-child(2) { opacity: 0; } .slk-open .slk-menu-trigger span:nth-child(3) { transform: rotate(-45deg) translateY(-10px) translateX(10px); } .slk-open .slk-main-nav { transform: translate(0px, 0px) !important; } /* Portrait and Landscape */ @media only screen and (max-width: 768px) { .slk-main-nav { box-shadow: -5px 10px 20px 0 rgba(46, 46, 51, 0.2); height: 200%; margin-top: 21px; position: fixed; width: 250px; z-index: 9999; background-color: white; transition: all 0.25s ease-in-out 0s; } .slk-main-nav ul li { display: block; width: 100%; clear: both; } .slk-main-nav ul li a { width: 100%; padding-left: 25px; } .slk-right .slk-main-nav { transform: translate(250px, 0px); right: 0; } .slk-left .slk-main-nav { transform: translate(-250px, 0px); left: 0; } } /* Portrait and Landscape */ @media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) { .slk-main-nav ul li a { padding: 10px 14px; font-size: 14px; } }
Related:
See More
Free Template
BLK• Design System
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76