"Split Screen"
Bootstrap 3.3.0 Snippet by ravi7284007

<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 id='accordian'> <div class="about"> <h1>Portfolio</h1> <div> <p>"Lorem ipsum dolor sit amet, consectetur adipisicing 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> <div class="blog"> <h1>Blog</h1> <div> <p>"Lorem ipsum dolor sit amet, consectetur adipisicing 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> </div> </div> <div class="logo"> <a href="#"> <img src="http://placehold.it/170x55"></a> </div>
@import url(http://fonts.googleapis.com/css?family=Alegreya+Sans:400,300,500); @import url(http://fonts.googleapis.com/css?family=Life+Savers:400,700); html, body { margin: 0; padding: 0; width: 100%; height: 100%; background: #000; font-family: 'Alegreya Sans', sans-serif; overflow: hidden; } #accordian { height: 100%; overflow: hidden; width: 120%; margin-left: -5%; } #accordian > div { height: 150%; margin-top: -10%; padding: 10% 5%; width: 34.75%; float: left; color: #ccc; -webkit-transform: rotate(5deg); -moz-transform: rotate(5deg); -o-transform: rotate(5deg); -ms-transform: rotate(5deg); transform: rotate(5deg); } #accordian > div h1 { text-align: center; cursor: pointer; -webkit-transform: rotate(-5deg); -moz-transform: rotate(-5deg); -o-transform: rotate(-5deg); -ms-transform: rotate(-5deg); transform: rotate(-5deg); font: normal 75px/35px 'Life Savers', cursive; margin-top: 20%; } #accordian > div h1.checked { margin-top: 5% !important; font-size: 45px; } #accordian > div h1.small { font-size: 25px; } #accordian > div > div { margin: 10px 5%; -webkit-transform: rotate(-5deg); -moz-transform: rotate(-5deg); -o-transform: rotate(-5deg); -ms-transform: rotate(-5deg); transform: rotate(-5deg); display: none; font-size: 18px; } #accordian .about { background: #4e256b; /* Old browsers */ background: -webkit-linear-gradient(top, #4e256b 1%, #31398e 100%); background: -moz-linear-gradient(top, #4e256b 1%, #31398e 100%); background: -o-linear-gradient(top, #4e256b 1%, #31398e 100%); background: -ms-linear-gradient(top, #4e256b 1%, #31398e 100%); background: linear-gradient(top, #4e256b 1%, #31398e 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#4e256b', endColorstr='#31398e', GradientType=0); } #accordian .blog { background: #2b95a5; background: -webkit-linear-gradient(top, #2b95a5 2%, #257c8c 100%); background: -moz-linear-gradient(top, #2b95a5 2%, #257c8c 100%); background: -o-linear-gradient(top, #2b95a5 2%, #257c8c 100%); background: -ms-linear-gradient(top, #2b95a5 2%, #257c8c 100%); background: linear-gradient(top, #2b95a5 2%, #257c8c 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#2b95a5', endColorstr='#257c8c', GradientType=0); } .logo { display: none; position: fixed; bottom: 50%; top: 50%; text-align: center; width: 100%; pointer-events: none; } .logo img { pointer-events: auto; } .logo.bottom { position: fixed; bottom: 0; top: 0; text-align: center; width: 100%; }
/*-----Toggling According -----*/ $(document).ready(function() { $("#accordian .about h1").click(function() { $('.about h1').addClass('checked'); $('.blog h1').addClass('small'); $('.logo').addClass('bottom'); $("#accordian .blog").animate( { width: "9.5%"}, 500); $("#accordian .about").animate( { width: "64.55%"}, 500); $("#accordian .about > div").show(500); $("#accordian .blog > div").hide(500); $('.blog h1').removeClass('checked'); $('.about h1').removeClass('small'); }); $("#accordian .blog h1").click(function() { $('.blog h1').addClass('checked'); $('.about h1').addClass('small'); $('.logo').addClass('bottom'); $("#accordian .about").animate( { width: "9.5%" }, 500); $("#accordian .blog").animate( { width: "64.55%" }, 500); $("#accordian > .blog > div").show(500); $("#accordian > .about > div").hide(500); $('.about h1').removeClass('checked'); $('.blog h1').removeClass('small'); }); $(".logo img").click(function() { $("#accordian .about").animate( { width: "34.75%"}, 500); $("#accordian .blog").animate( {width: "34.75%"}, 500); $("#accordian .blog > div").hide(500); $("#accordian .about > div").hide(500); $('.about h1').removeClass('checked'); $('.blog h1').removeClass('checked'); $('.logo').removeClass('bottom'); }); });

Related: See More


Questions / Comments: