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
"responsive menu "X" in the navigation"
Bootstrap 3.3.0 Snippet by
Kiraan
3.3.0
menu
navigation
responsive
Preview
HTML
CSS
View Full Screen
Fork
Fork this
15.2K
 
3 Fav
Post to Facebook
Tweet this
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.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 ----------> <div class="container"> <div class="row"> <h3>"X" In responsive navigation</h3> <h5>Resize to Mobile view to check the effect</h5> <nav class="navbar white navbar-default"> <div class="logo"></div> <div class="container-fluid"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-1" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar top-bar"></span> <span class="icon-bar middle-bar"></span> <span class="icon-bar bottom-bar"></span> </button> </div> <div id="navbar-1" class="navbar-collapse collapse mainnav"> <ul class="nav navbar-nav"> <li><a class="scroller" href="#proj-head">Title</a> </li> <li><a href="#section3">One</a> </li> <li><a href="#section4">Two</a> </li> <li><a href="#section6">Three</a> </li> <li><a href="#section6">Four</a> </li> </ul> </div> <!--/.nav-collapse --> </div> <!--/.container-fluid --> </nav> </div> </div>
.navbar-toggle .icon-bar { width: 22px; transition: all 0.2s; -webkit-transition: all 0.2s; } .navbar-default .navbar-toggle { position:relative; padding-top:10px; z-index:100 } .navbar-toggle .top-bar { transform: rotate(45deg); -webkit-transform: rotate(45deg); transform-origin: 10% 10%; -webkit-transform-origin: 10% 10%; } .navbar-toggle .middle-bar { opacity: 0; } .navbar-toggle .bottom-bar { transform: rotate(-45deg); transform-origin: 10% 90%; -webkit-transform: rotate(-45deg); -webkit-transform-origin: 10% 90%; } .navbar-toggle.collapsed .top-bar { transform: rotate(0); -webkit-transform: rotate(0); } .navbar-toggle.collapsed .middle-bar { opacity: 1; } .navbar-toggle.collapsed .bottom-bar { transform: rotate(0); -webkit-transform: rotate(0); }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76