i\'ve been looking around for tutorials on how to make a simple sidebar menu for a site that can fold in & out by clicking on a home button next to the sidebar menu, much li
I have changed the css code (example from Amarnath), a little bit. For testing-purposes only. So I can the function better understand. Maybe it can help someone...
#slideout {
position: fixed;
top: 0px;
left: 0;
width: 10px;
height: 100px;
background-color: yellow;
-webkit-transition-duration: 0.3s;
-moz-transition-duration: 0.3s;
-o-transition-duration: 0.3s;
transition-duration: 0.3s;
-webkit-transition-duration: 0.3s;
}
#slideout:hover {
left: 180px;
background-color: cyan;
}
#slideout_inner {
position: fixed;
top: 0px;
left: -180px;
width: 180px;
height: 100px;
background-color: red;
-webkit-transition-duration: 0.3s;
-moz-transition-duration: 0.3s;
-o-transition-duration: 0.3s;
transition-duration: 0.3s;
}
#slideout:hover #slideout_inner {
left: 0;
background-color: magenta;
}