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
"left sidebar navigation- mobile"
Bootstrap 3.0.0 Snippet by
jeevan123456
3.0.0
sidebar
navigation
Preview
HTML
CSS
View Full Screen
Fork
Fork this
7.7K
 
1 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 ----------> <div class="dropdown"> <input type="checkbox" id="checkbox_toggle"> <label for="checkbox_toggle" class="hamburger"> <span class="left-align-tier line"></span> </label> <nav> <ul> <li><a href="#">Link One</a></li> <li><a href="#">Link Two</a></li> <li><a href="#">Link Three</a></li> <li><a href="#">Link Four</a></li> </ul> </nav> </div> <div class="page-content"> </div>
@import'https://fonts.googleapis.com/css?family=Oswald|Nunito'; * { margin: 0; padding: 0; box-sizing: border-box; font-family: Oswald; color: #2d2d2d; cursor: default; } body { background-color: #fcfafc; padding: .875rem; } p{ margin-top: .125rem; font-family: "Nunito"; } a{ cursor: pointer; } input[type=checkbox] { display: none; } nav ul { max-width: 0px; overflow: hidden; list-style: none; transition: all 1s cubic-bezier(.325, 1, .22, 1); } nav li { border-bottom: .18rem solid #fff; color: #fff; font-size: 16px; padding: 5px 0; display: flex; justify-content: center; width: 100px; } nav li:last-of-type { margin-bottom: .625rem; } nav li a { font-family: "Nunito"; text-decoration: none; } nav li a:hover{ text-decoration: underline; } input[type=checkbox]:checked ~ nav ul { width: auto; max-width: 100px; height: auto; margin-left: 1.5rem; transition: all 1s cubic-bezier(.5, 1, .22, 1); } .hamburger { display: block; position: absolute; top: 18px; left: 13px; height: 2rem; width: 2rem; cursor: pointer; transition: all 1s cubic-bezier(.19, 1, .22, 1); } .line, .line::before, .line::after { position: absolute; height: .28rem; border-radius: 4px; background-color: currentColor; content: ''; transition: all .6s cubic-bezier(.5, .1, 0, 1.2); } .left-align-tier { top: 10px; width: 1.1rem; } .left-align-tier::before { top: -10px; width: 1.5rem; } .left-align-tier::after { top: 10px; width: .8rem; } input[type=checkbox]:checked ~ label .line.left-align-tier:before { top: 0px; width: .8rem; transform: translateX(5px) rotate(45deg) translateY(7px); } input[type=checkbox]:checked ~ label .line.left-align-tier { width: 1.4rem; } input[type=checkbox]:checked ~ label .line.left-align-tier:after { top: 14px; width: .8rem; transform: translateX(18px) rotate(-45deg) translateY(-26px); }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76