"mobile"
Bootstrap 3.0.0 Snippet by evarevirus

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.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 ----------> <!DOCTYPE html><html class=''> <head><script src='//production-assets.codepen.io/assets/editor/live/console_runner-079c09a0e3b9ff743e39ee2d5637b9216b3545af0de366d4b9aad9dc87e26bfd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/events_runner-73716630c22bbc8cff4bd0f07b135f00a0bdc5d14629260c3ec49e5606f98fdd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/css_live_reload_init-2c0dc5167d60a5af3ee189d570b1835129687ea2a61bee3513dee3a50c115a77.js'></script><meta charset='UTF-8'><meta name="robots" content="noindex"><link rel="shortcut icon" type="image/x-icon" href="//production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" /><link rel="mask-icon" type="" href="//production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" /><link rel="canonical" href="https://codepen.io/prvnbist/pen/QOLPYr" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css'><link rel='stylesheet prefetch' href='https://fonts.googleapis.com/icon?family=Material+Icons'> <style class="cp-pen-styles">* { box-sizing: border-box; margin: 0; padding: 0; } body { height: 100vh; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } .snap { width: 350px; height: 350px; background: #E85D5E; border-radius: 0 0 30px 30px; display: -webkit-box; display: -ms-flexbox; display: flex; overflow: hidden; position: relative; box-shadow: 0 10px 90px -2px rgba(0, 0, 0, 0.3); } .snap .tab-panel { width: 100vh; height: 60px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; -ms-flex-item-align: end; align-self: flex-end; line-height: 70px; text-align: center; position: relative; z-index: 100; color: #fff; } .snap .tab-panel .tab { width: 33.33%; height: inherit; cursor: pointer; } .snap .tab-panel .tab:nth-child(2) { position: relative; } .snap .tab-panel .tab:nth-child(2):after { content: ''; width: 60px; height: 60px; position: absolute; top: -85px; left: 20px; -webkit-transform: translate(, ); transform: translate(, ); border-radius: 50%; border: 8px solid #fff; } .snap .active { width: 60px; height: 5px; background: #fff; position: absolute; left: 50%; bottom: 0; -webkit-transform: translate(-50%, 0); transform: translate(-50%, 0); border-radius: 30px 30px 0 0; z-index: 100; } .snap .yellow { width: 100%; height: 100%; background: #ED994D; position: absolute; top: 0; right: -100%; -webkit-transform: translate(, ); transform: translate(, ); } .snap .blue { width: 100%; height: 100%; background: #24CEC2; position: absolute; top: 0; left: -100%; -webkit-transform: translate(, ); transform: translate(, ); } </style></head><body> <div class="snap"> <div class="tab-panel"> <div class="tab one"><i class="material-icons">textsms</i></div> <div class="tab"><i class="material-icons">refresh</i></div> <div class="tab"><i class="material-icons">sort</i></div> </div> <div class="active"></div> <div class="blue"></div> <div class="yellow"></div> </div><!-- https://dribbble.com/shots/3820584-Camera-app-tab-bar --> <script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script><script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script> <script >var active = $('.active'), firstTab = $('.tab:nth-child(1)'), secondTab = $('.tab:nth-child(2)'), thirdTab = $('.tab:nth-child(3)'), yellowBg = $(".yellow"), blueBg = $(".blue"); firstTab.on('click', function() { active.animate({ left: '17%' }); secondTab.animate({ marginTop: '50px' }); blueBg.animate({ left: '0' }); yellowBg.animate({ right: '-100%' }); }); secondTab.on('click', function() { active.animate({ left: "50%" }); $(this).animate({ marginTop: "0" }); blueBg.animate({ left: "-100%" }); yellowBg.animate({ right: "-100%" }); }); thirdTab.on('click', function() { active.animate({ left: "83%" }); secondTab.animate({ marginTop: "50px" }); blueBg.animate({ left: "-100%" }); yellowBg.animate({ right: "0" }); }); //# sourceURL=pen.js </script> </body></html>

Related: See More


Questions / Comments: