"Sideways Sliding Menu"
Bootstrap 3.3.0 Snippet by progjonner

<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" style="border:1px solid blue;"> <div class="col-lg-12 col-md-12 text-left" style="border:1px solid green; padding:0 !important;"> <ul class="sidemenu rotate"> <li id="menu1" >Menu Item 1</li> <li id="menu2" >Menu Item 2</li> <li id="menu3" >Menu Item 3</li> </ul><!-- <div class="sideways"> <ul> <li id="btnTerminal" style="cursor:pointer"> <img src="http://findicons.com/files/icons/1035/human_o2/128/utilities_terminal.png" height="16" alt="Terminal" title="Terminal" /> Terminal </li> <li id="btnToolbox" style="cursor:pointer"> <img src="http://www.ctsicn.org/sites/default/files/specialContentAreaImages/Toolbox-Red-icon2.png" height="16" alt="Toolbox" title="Toolbox" /> Toolbox </li> <li id="btnProjectExplorer1" style="cursor:pointer"> <img src="http://findicons.com/files/icons/2222/gloss_basic/32/folder.png" height="16" /> Project Explorer 1 </li> </ul> </div> --> <div id="content-area-container"> <div id="content-area-1"><h1>Terminal</h1><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p></div> <div id="content-area-2"><h1>Toolbox</h1><p>But I must explain to you how all this mistaken idea of denouncing of a pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. </p></div> <div id="content-area-3"><h1>Project Explorer 1</h1><p>Today's popular version of Lorem ipsum was first created in the mid-1980s for Aldus Corporation's desktop publishing program PageMaker for the Apple Macintosh.[1] Aldus adapted older forms of the lorem text from typography samples to use in PageMaker's graphics and word processing templates. Nowadays a variety of software, including text editors and plug-ins, can generate semi-random "lorem-like text", which often has little or nothing in common with the canonic.</p></div> </div> </div> </div> </div>
#content-area-1, #content-area-2, #content-area-3 { width:0px; overflow:hidden; height:400px; position:absolute; top:5px; left:40px; background-color:#ddd; border-radius:10px; border-color:#ccc; } #content-area-1 p, #content-area-2 p, #content-area-3 p{ padding:10px; } #content-area-container{ width:100px; } ul.sidemenu { margin:0 !important; padding:0 !important; list-style-type: none; width: 310px; height: 30px; position:relative; top:300px;/*this needs to equal the width so it rotates correctly into view */ left:-2px; } .sidemenu li { width:95px; background-color:#fff; border:1px solid #bbb; color:black; border-radius:4px; display:inline-block; padding:4px; margin:0 5px 0 0; } .rotate { transform-origin: left top;/*rotate the div from the top left corner -- imagine a pin in the corner and you spin it -90 degrees */ /* Safari */ -webkit-transform: rotate(-90deg); /* Firefox */ -moz-transform: rotate(-90deg); /* IE */ -ms-transform: rotate(-90deg); /* Opera */ -o-transform: rotate(-90deg); /* Internet Explorer */ filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); }
$(document).ready(function(){ $("#btnTerminal").click(function(){ $("#content-area-3").animate({ width: '0px' }); $("#content-area-2").animate({ width: '0px' }); $("#content-area-1").animate({ width: '350px' }); }); $("#btnToolbox").click(function(){ $("#content-area-1").animate({ width: '0px' }); $("#content-area-3").animate({ width: '0px' }); $("#content-area-2").animate({ width: '350px' }); }); $("#btnProjectExplorer1").click(function(){ $("#content-area-1").animate({ width: '0px' }); $("#content-area-2").animate({ width: '0px' }); $("#content-area-3").animate({ width: '350px' }); }); });

Related: See More


Questions / Comments: