"mobile shop"
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/MattttHenderson/pen/QGONZx?depth=everything&order=popularity&page=3&q=shop&show_forks=false" /> <link href="https://fonts.googleapis.com/css?family=Lato:300,400,700,900|Montserrat:400,700|Open+Sans:300,400,700|Cormorant+Garamond:400,500,700|Playfair+Display+SC:400,700,900" rel="stylesheet"> <link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css"> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style class="cp-pen-styles">html, body { margin: 0; padding: 0; width: 100%; height: 100%; position: relative; display: flex; margin: auto; height: auto; justify-content: center; flex-wrap: wrap; } .container { margin-top: 5%; position: relative; background: #f9f9f9; width: 310px; height: 550px; overflow: hidden; box-shadow: 0px 35px 100px -35px rgba(0, 0, 0, 0.9); } .header { width: 100%; height: 55px; background: #152b4b; z-index: 100; } .menu_button { position: absolute; width: 24px; height: 20px; top: 18px; left: 15px; } .menu_button span { position: absolute; width: 100%; height: 1px; background: #edab95; } #button_middle { top: 9px; } #button_bottom { top: 18px; } .title { height: 50px; width: 100%; color: #fff; text-align: center; letter-spacing: 2px; font-family: 'Lato'; text-transform: uppercase; z-index: 1000; } .title h2 { font-size: 9px; line-height: 40px; margin: 0; } .title h1 { font-size: 12px; margin-top: -15px; } .header i { position: absolute; color: #edab95; font-size: 24px; top: 16px; right: 10px; } .scroll { width: 330px; height: 550px; overflow-x: hidden; overflow-y: scroll; } .shop { margin-bottom: 54px; } .overview { width: 100%; height: 200px; background-image: linear-gradient(rgba(21, 43, 75, .8), rgba(21, 43, 75, .8)), url('http://hotspots360.com/wp-content/uploads/2014/11/50-UNITED-NATIONS-PLAZA-SAKS-FIFTH-AVENUE-FULL_2.jpg'); background-size: cover; } .overview p { color: #edab95; font-family: "Playfair Display SC"; text-transform: uppercase; font-size: 50px; font-weight: 700; width: 100%; height: 0; margin: 0; line-height: 200px; text-align: center; opacity: 0; -webkit-transition: opacity 1s ease; -moz-transition: opacity 1s ease; -o-atransition: opacity 1s ease; transition: opacity 1s ease; } .overview.one p:nth-of-type(1) { opacity: 1; } .overview.two p:nth-of-type(2) { opacity: 1; } .overview.three p:nth-of-type(3) { opacity: 1; } .bar { width: 100%; height: 45px; background: #fff; z-index: 50; font-size: 0; padding-left: 20%; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } .link { width: 20%; height: 41.5px; display: inline-block; line-height: 45px; font-family: 'Montserrat'; font-weight: 700; font-size: 12px; letter-spacing: 2px; text-align: center; text-transform: uppercase; color: #31343b; cursor: pointer; } .line { width: 60px; height: 3px; background: #152b4b; -webkit-transition: all .5s ease; -moz-transition: all .5s ease; -o-atransition: all .5s ease; transition: all .5s ease; } .line.one { -webkit-transform: translate(0,0); transform: translate(0, 0); } .line.two { -webkit-transform: translate(63px,0); transform: translate(63px, 0); } .line.three { -webkit-transform: translate(126px,0); transform: translate(126px, 0); } .bar.fixed { top: 55px; position: absolute; } .items { position: relative; width: 100%; background: #0a1420; overflow: hidden; -webkit-transition: opacity 1s ease; -moz-transition: opacity 1s ease; -o-atransition: opacity 1s ease; transition: opacity 1s ease; } .suits.fixed { margin-top: 45px; } .suits { height: 0; opacity: 0; } .ties { height: 0; opacity: 0; } .shoes { height: 0; opacity: 0; } .suits.active { height: auto; opacity: 1; } .ties.active { height: auto; opacity: 1; } .shoes.active { height: auto; opacity: 1; } .item { position: relative; width: 280px; height: 220px; border-radius: 5px; background: #f4f4f4; margin: 15px; overflow: hidden; } .img { width: 100%; height: 100%; background-size: cover; background-position: center center; } .price { position: absolute; left: 10px; bottom: 8px; font-family: 'Montserrat'; }</style></head><body> <div class="container"> <div class="header"> <div class="menu_button"> <span id="button_top"></span> <span id="button_middle"></span> <span id="button_bottom"></span> </div> <div class="title"> <h2>UI 11/29/2016</h2> <h1>Clothing Shop</h1> </div> <i class="material-icons">bookmark_border</i> </div> <div class="scroll"> <div class="shop"> <div class="overview"> <p>Suits</p> <p>Ties</p> <p>Shoes</p> </div> <div class="bar"> <div class="link one"> Suits </div> <div class="link two"> Ties </div> <div class="link three"> Shoes </div> <div class="line"></div> </div> <div class="items suits"> <div class="item"> <div class="img" style="background-image: url('http://images.menswearhouse.com/is/image/TMW/MW40_30U4_14_PERRY_ELLIS_PORTFOLIO_BLUE_POSTMAN_MAIN?$40Zoom$');"> </div> <div class="price"> $245 </div> </div> <div class="item"> <div class="img" style="background-image: url('http://images.menswearhouse.com/is/image/TMW/MW40_30L7_67_LAUREN_BY_RALPH_LAUREN_BLUE_WINDOWPANE_MAIN?$40Zoom$');"> </div> <div class="price"> $315 </div> </div> <div class="item"> <div class="img" style="background-image: url('http://images.menswearhouse.com/is/image/TMW/MW40_30UX_37_JOE_JOSEPH_ABBOUD_BLUE_BASIC_STRIPE_MAIN?$40Zoom$');"> </div> <div class="price"> $275 </div> </div> </div> <div class="items ties"> <div class="item"> <div class="img" style="background-image: url('http://images.menswearhouse.com/is/image/TMW/MW40_899A_11_JOSEPH_FEISS_GOLD_TIES_BLACK_SET?wid=1200&hei=627');"> </div> <div class="price"> $25 </div> </div> <div class="item"> <div class="img" style="background-image: url('http://images.menswearhouse.com/is/image/TMW/MW40_899H_31_JOSEPH_FEISS_GOLD_TIES_AQUA_SET?wid=1200&hei=627');"> </div> <div class="price"> $25 </div> </div> <div class="item"> <div class="img" style="background-image: url('http://images.menswearhouse.com/is/image/TMW/MW40_899H_17_JOSEPH_FEISS_GOLD_TIES_SILVER_SET?wid=1200&hei=627');"> </div> <div class="price"> $25 </div> </div> </div> <div class="items shoes"> <div class="item"> <div class="img" style="background-image: url('http://images.menswearhouse.com/is/image/TMW/MW40_403V_03_JOSEPH_ABBOUD_WHITE_LABEL_BROWN_MAIN?$40Zoom$');"> </div> <div class="price"> $75 </div> </div> <div class="item"> <div class="img" style="background-image: url('http://images.menswearhouse.com/is/image/TMW/MW40_408A_10_CALVIN_KLEIN_FORMAL_MAIN?$40Zoom$');"> </div> <div class="price"> $105 </div> </div> <div class="item"> <div class="img" style="background-image: url('http://images.menswearhouse.com/is/image/TMW/MW40_4608_06_JOSEPH_ABBOUD_BURGUNDY_MAIN?$40Zoom$');"> </div> <div class="price"> $65 </div> </div> </div> </div> </div> </div> <script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script><script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script> <script >window.onload = function() { var items = $('.items'); var header = $('.header'); $('.suits').addClass('active'); $('.one').addClass('active'); $('.overview').addClass('one'); $('.scroll').scroll(function() { var itemsTop = items.offset().top - 45; var headerTop = header.offset().top; var headerBottom = headerTop + header.height(); if (headerBottom >= itemsTop) { $('.bar').addClass('fixed'); $('.suits').addClass('fixed'); } else { $('.bar').removeClass('fixed'); $('.suits').removeClass('fixed'); } }); $('.one').click(function() { $('.line').addClass('one'); $('.line').removeClass('two'); $('.line').removeClass('three'); $('.suits').addClass('active'); $('.overview').addClass('one'); $('.overview').removeClass('two'); $('.overview').removeClass('three'); $('.ties').removeClass('active'); $('.shoes').removeClass('active'); $(".scroll").animate({ scrollTop: 0 }, "medium"); }); $('.two').click(function() { $('.line').addClass('two'); $('.line').removeClass('one'); $('.line').removeClass('three'); $('.ties').addClass('active'); $('.overview').addClass('two'); $('.overview').removeClass('one'); $('.overview').removeClass('three'); $('.suits').removeClass('active'); $('.shoes').removeClass('active'); $(".scroll").animate({ scrollTop: 0 }, "medium"); }); $('.three').click(function() { $('.line').addClass('three'); $('.line').removeClass('one'); $('.line').removeClass('two'); $('.shoes').addClass('active'); $('.overview').addClass('three'); $('.overview').removeClass('one'); $('.overview').removeClass('two'); $('.suits').removeClass('active'); $('.ties').removeClass('active'); $(".scroll").animate({ scrollTop: 0 }, "medium"); }); }; //# sourceURL=pen.js </script> </body></html>

Related: See More


Questions / Comments: