<!-- // SlideOut -->
<div id="slideOut">
<!-- // Tab -->
<div class="slideOutTab">
<div>
<p>i am tab.</p>
</div>
</div>
<div class="modal-content">
<div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Hello World!</h4> </div>
<div class="modal-body">
<p>One fine body…</p>
</div>
<div class="modal-footer"> </div>
</div>
</div>
<!-- // Scroll content -->
<section>
<div class="intro text-center"><h1>Slide out Panel & Tab</h1><h4>{ Built with Bootstrap + Modal }</h4></div>
</section>
<section></section>
<section></section>
#slideOut {
position: fixed;
width: 300px;
height: 800px;
top: 30px;
right: -300px;
/* Animation */
transition-property: all;
transition-duration: .5s;
transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
}
/* Display slideOut */
.showSlideOut {
right: 0px !important;
}
/* Tab */
.slideOutTab {
margin-top: 50px;
position: absolute;
left: -40px;
height: 200px;
width: 40px;
-webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
background: #F2AB34;
border-radius: 15px 0px 0px 15px
}
.slideOutTab div {
text-align: center;
position: relative;
right: 70px;
top: 90px;
background: #F2AB34;
width: 180px;
-webkit-transform: rotate(270deg);
-moz-transform: rotate(270deg);
-o-transform: rotate(270deg);
writing-mode: lr-tb;
}
/* None relevant included styling */
body,
html {
background: #4DA6BB;
overflow: visible;
height: 100%;
width: 100%;
}
h1 {font-size:70px;margin-top:-90px}
section:nth-child(2) {
background: #7876A0;
}
section {
height: 100%;
width: 100%;
}
.modal-body {
height: 400px;
}
section {
display: table;
width: 100%;
height: 100%;
}
.intro {
display: table-cell;
vertical-align: middle;
}