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
"Sliding Cog Menu from wpcore.com"
Bootstrap 3.2.0 Snippet by
stueynet
3.2.0
jQuery
Preview
HTML
CSS
JS
View Full Screen
Fork
Fork this
3.4K
 
2 Fav
Post to Facebook
Tweet this
<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.2.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 ----------> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css"> <div class="wrap"> <div id="toolbar"> <a class="btn btn-sm btn-primary toolbutton" href="#"> <i class="fa fa-cogs"></i> </a> <button class="btn btn-default btn-sm" data-toggle="modal" data-target="#report"> Report a bug </button> <div class="btn-group btn-group-sm"> <a href="#" id="gridview" class="switcher active btn btn-default"><i class="fa fa-fw fa-th"></i></a> <a href="#" id="listview" class="switcher btn btn-default"><i class="fa fa-fw fa-bars"></i></a> </div> </div> </div>
.wrap{position: relative} #toolbar{ display: block; position: fixed; bottom: 0; right: 0; z-index: 999; min-height: 20px; margin-bottom: 20px; background-color: #f5f5f5; border: 1px solid #e3e3e3; -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.05); box-shadow: inset 0 1px 1px rgba(0,0,0,.05); padding: 9px; -webkit-border-radius: 3px; border-radius: 3px; margin-right: -183px; // this depends on how wide your toolbar is }
$(function() { $('#toolbar').stop().animate({'margin-right':'-183px'},1000); function toggleTools() { var $inner = $("#toolbar"); if ($inner.css("margin-right") == "-183px") { $inner.animate({'margin-right': '0'}); $(".toolbutton").html('<i class="fa fa-times"></i>') } else { $inner.animate({'margin-right': "-183px"}); $(".toolbutton").html('<i class="fa fa-cogs"></i>') } } $(".toolbutton").bind("click", function(e){ toggleTools(); e.preventDefault(); }); });
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76