"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/linuxenko/pen/KzorrZ?limit=all&page=44&q=mobile" /> <link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Roboto'><link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css'> <style class="cp-pen-styles">body, html, .application { height: 100%; width: 100%; font-family: Roboto; font-size: 12px; } * { margin: 0px; padding: 0px; box-sizing: border-box; } .application { background-color: #fff; display: flex; } .mobile-wrapper { position: relative; display: flex; margin: auto; flex-direction: column; width: 300px; height: 480px; overflow: hidden; background: radial-gradient(#673ab7, #7446c4); box-shadow: 1px 1px 5px #444; } .mobile_subnav { margin: 17px 20px; color: #fff; } .mobile_subnav--desc { float: left; margin-top: 10px; font-size: 14px; text-transform: uppercase; } .mobile_subnav--icons { float: right; font-size: 18px; } .mobile_button { width: 45px; height: 45px; line-height: 45px; text-align: center; font-size: 24px; border-radius: 100%; color: #fff; box-shadow: 0px 1px 3px #444; position: absolute; z-index: 1; bottom: 20px; right: 20px; cursor: pointer; transition: all 0.2s linear; } .mobile_button:hover { box-shadow: 0px 1px 5px #444; } .mobile_button--add { background: #00bfa5; } .mobile_button--insert { display: inline-block; width: 80%; left: 10px; margin: 20px 0px; background: #8259cb; box-shadow: 0px 1px 3px #444; cursor: pointer; font-size: 14px; } .mobile_button--insert:hover { box-shadow: 0px 1px 5px #444; } .mobile_button--insert > span { padding: 0px !important; text-transform: uppercase; background: none; width: auto !important; background: none !important; } .mobile_button .mobile_button--layout--content { opacity: 0; transition: opacity 0.1s linear; } .mobile_button--layout { bottom: 0px; right: 0px; width: 100%; height: 100%; border-radius: 0px; transition: all 0.2s linear; cursor: default; } .mobile_button--layout .items--list--image > span { width: 70px; height: 70px; } .mobile_button--layout > span { display: none; } .mobile_button--layout > .mobile_button--layout--content { margin-top: 60px; width: 100%; opacity: 1; transition: opacity 0.5s linear; text-align: center; } .mobile_button--layout > .mobile_button--layout--content > div { display: inline-block; } .mobile_nav { position: relative; height: 20px; line-height: 20px; width: 96%; margin: 0px auto; color: #fff; font-size: 12px; } .mobile_nav--dots { display: inline-block; } .mobile_nav--dots > span { display: block; float: left; background: #fff; width: 5px; height: 5px; border-radius: 100%; margin: 0px 1px; } .mobile_nav--left { width: 100%; position: absolute; left: 0px; top: 0px; } .mobile_nav--center { width: 100%; position: absolute; left: 0px; top: 0px; font-weight: bold; text-align: center; } .mobile_nav--right { width: 100%; position: absolute; left: 0px; top: 0px; text-align: right; } .items-wrapper { margin: 1px 1px; display: flex; flex-grow: 1; flex-direction: row; width: 100%; background: #fff; height: 100%; overflow: hidden; position: relative; } .items--list { list-style: none; display: flex; flex-direction: column; flex-grow: 1; position: absolute; width: 100%; } .items--list li { margin: 40px 10px; display: block; display: flex; flex-direction: row; align-items: center; } .items--list--image > span { display: block; width: 40px; height: 40px; border-radius: 100%; background: #ffe082; } .items--list--text { width: 100%; text-align: center; float: right; } .items--list--text span { width: 80%; display: inline-block; padding: 5px; border-radius: 10px; background: #eee; } .items--list--text span:nth-child(1) { width: 90%; } .items--list li:nth-child(even) .items--list--image > span { background: #f06292; } </style></head><body> <div class="application"> <div class="mobile-wrapper"> <div class="mobile_nav"> <div class="mobile_nav--left"> <span class="mobile_nav--dots"> <span></span> <span></span> <span></span> <span></span> <span></span> <span></span> </span> </div> <div class="mobile_nav--center"> 02:42 </div> <div class="mobile_nav--right"> <small>80%</small> <i class="fa fa-battery-three-quarters" aria-hidden="true"></i> </div> </div> <div class="mobile_subnav"> <span class="mobile_subnav--desc"> items feed </span> <span class="mobile_subnav--icons"> <i class="fa fa-search" aria-hidden="true"></i> </span> </div> <div id="items-wrapper" class="items-wrapper"> <ul class="items--list"> <li> <div class="items--list--image"><span></span></div> <div class="items--list--text"><span></span><span></span></div> </li> <li> <div class="items--list--image"><span></span></div> <div class="items--list--text"><span></span><span></span></div> </li> <li> <div class="items--list--image"><span></span></div> <div class="items--list--text"><span></span><span></span></div> </li> <li> <div class="items--list--image"><span></span></div> <div class="items--list--text"><span></span><span></span></div> </li> <li> <div class="items--list--image"><span></span></div> <div class="items--list--text"><span></span><span></span></div> </li> <li> <div class="items--list--image"><span></span></div> <div class="items--list--text"><span></span><span></span></div> </li> <li> <div class="items--list--image"><span></span></div> <div class="items--list--text"><span></span><span></span></div> </li> <li> <div class="items--list--image"><span></span></div> <div class="items--list--text"><span></span><span></span></div> </li> <li> <div class="items--list--image"><span></span></div> <div class="items--list--text"><span></span><span></span></div> </li> </ul> <div id="button-add" class="mobile_button mobile_button--add"> <span>+</span> <div class="mobile_button--layout--content"> <div class="items--list--image"><span></span></div> <div class="items--list--text"><span></span><span></span> <div id="button-insert" class="mobile_button--insert"> <span>host item</span> <i class="fa fa-cloud" aria-hidden="true"></i> </div> </div> </div> </div> </div> </div> </div> <script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script><script src='//cdnjs.cloudflare.com/ajax/libs/jquery/2.2.2/jquery.min.js'></script><script src='https://cdnjs.cloudflare.com/ajax/libs/iScroll/5.2.0/iscroll-lite.min.js'></script> <script >/* Home https://github.com/c0ncept/list-items-mobile */ var scroll = new IScroll('#items-wrapper', { mouseWheel: true, scrollbars: true }); $('#button-add').on('click', function() { $(this).addClass('mobile_button--layout'); }); $('#button-insert').on('click', function(e) { e.stopPropagation(); $('#button-add').removeClass('mobile_button--layout'); }); /* scenario */ setTimeout(function() { scroll.scrollTo(0, -500, 500); }, 500); setTimeout(function() { $('#button-add').click(); },1500); setTimeout(function() { $('#button-insert').click(); },2500); //# sourceURL=pen.js </script> </body></html>

Related: See More


Questions / Comments: