"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 ----------> <link href='https://fonts.googleapis.com/css?family=Ubuntu:300,400' rel='stylesheet' type='text/css'> <link href="https://fontastic.s3.amazonaws.com/SpzyUx3jJrkwJzQ5E9jPvb/icons.css" rel="stylesheet"> <div id="container"> <header id="title"> <h1>Jonathan Doe</h1> <h2>photography</h2> </header> <ul id="list"> <button id="menuIcon" class="cmn-toggle-switch cmn-toggle-switch__htx"> <span>toggle menu</span> </button> <li class="hidden"><i class="icon-book-read-streamline"></i>Editorial <nav class="hiddenRight"> <span><a>fashion</a></span> <span><a>sports</a></span> <span><a>cars</a></span> <span><a>fashion</a></span> </nav> </li> <li class="hidden"><i class="icon-picture-streamline"></i>Personal <nav class="hiddenRight something"> <span><a>Cats</a></span> <span><a>Dogs</a></span> <span><a>Unicorns</a></span> <span><a>Landscapes</a></span> </nav> </li> <li class="hidden" id="about"><i class="icon-bubble-comment-streamline-talk"></i> About </li> </ul> <img id="backPic" src="https://drscdn.500px.org/photo/41782238/m%3D1170/d0646813ae13320de97e96af8503d821"> </div> <script> $('#menuIcon').click (function(){ $('#backPic').toggleClass('blurFilter'); $('#title').toggleClass('goAside'); $('#list li').toggleClass('hidden'); $('#list').toggleClass('backDark'); $('#list li nav').addClass('hiddenRight') $('#list li').removeClass('blurry'); }); $('#list li').click(function(){ $('#list li').addClass('blurry'); $(this).removeClass('blurry'); if ($(this).children('nav').hasClass('hiddenRight')){ $('#list li nav').addClass('hiddenRight'); $(this).children('nav').toggleClass('hiddenRight'); }else{ $(this).children('nav').addClass('hiddenRight'); } }); $('#list li nav span a, #about').click(function(){ $('#backPic').removeClass('blurFilter'); $('#title').removeClass('goAside'); $('#list li').toggleClass('hidden'); $('#list').removeClass('backDark'); $('.cmn-toggle-switch').toggleClass('active'); $(this).parents('nav').addClass('hiddenRight'); }); $('#list li nav span a').on( "click", function() { console.log( $( this ).text() ); $(this).parents('nav').toggleClass('hiddenRight'); }); $('#list').click(function(event){ event.stopPropagation(); }); /*css-only-hamburger-menu-icons from http://callmenick.com/*/ (function() { "use strict"; var toggles = document.querySelectorAll(".cmn-toggle-switch"); for (var i = toggles.length - 1; i >= 0; i--) { var toggle = toggles[i]; toggleHandler(toggle); }; function toggleHandler(toggle) { toggle.addEventListener( "click", function(e) { e.preventDefault(); (this.classList.contains("active") === true) ? this.classList.remove("active") : this.classList.add("active"); }); } })(); </script>
* { transition: all 0.5s ease-out; box-sizing: border-box; } body { background: #92BCCF; padding-top: 2em; font-family: 'Ubuntu', sans-serif; } #container { overflow: hidden; position: relative; height: 757px; width: 375px; margin: 0 auto; border-radius: 15px; border: 10px solid #fff; border-bottom: 60px solid #fff; border-top: 30px solid #fff; } #container header { text-align: center; position: relative; top: 50%; transform: translateY(-50%); z-index: -1; } #container header h1, #container header h2 { color: #fff; font-weight: 300; } #container header h1 { display: inline; padding: 0.3em; border: 1px solid #fff; } #container header h1:hover { box-shadow: 2px 2px 0px 0px #ffffff; cursor: pointer; } #container img { position: absolute; top: 0px; left: -40px; width: 125%; z-index: -2; filter: grayscale(0.75); -webkit-filter: grayscale(0.75); } .blurry { color: transparent; text-shadow: 0 0 5px rgba(255, 255, 255, 0.8); } ul { height: 100%; float: right; margin: -106px 0px; list-style-type: none; padding: 1em; text-align: center; display: table; } ul li { text-align: center; color: #fff; text-transform: uppercase; font-size: 10px; margin: 0 7%; transition: all 0.3s ease-out; cursor: pointer; display: table-row; } ul li i { display: block; font-size: 45px; } ul li nav { width: 77%; margin-right: 23%; height: 100%; position: absolute; right: 0px; top: 0px; display: table; } ul li nav span { display: table-row; } ul li nav span a { font-size: 1.5em; color: #fff; display: table-cell; vertical-align: middle; background-color: #3b4448; opacity: 0.8; } ul li nav span a:hover { opacity: 1; text-shadow: 0 0 0px; color: #fff; } .hidden { height: 0px; overflow: hidden; display: block; opacity: 0; } .hiddenRight { width: 0px; overflow: hidden; display: block; opacity: 0; } .hiddenRight span { opacity: 0; } .blurFilter { -webkit-filter: blur(5px) grayscale(0.75) opacity(0.8) !important; filter: blur(5px) grayscale(0.75) opacity(0.8) !important; transition: 1s -webkit-filter linear; } .goAside { margin-left: -80px; opacity: 0.2; } .backDark { background-color: rgba(59, 68, 72, 0.75); } .test { background-color: #92bccf !important; } /*css-only-hamburger-menu-icons from http://callmenick.com/*/ .cmn-toggle-switch { display: block; position: relative; overflow: hidden; margin: 0 8px; float: right; width: 35px; height: 40px; font-size: 0; text-indent: -9999px; -webkit-appearance: none; -moz-appearance: none; appearance: none; box-shadow: none; border-radius: none; border: none; cursor: pointer; background: none !important; } .cmn-toggle-switch:focus { outline: none; } .cmn-toggle-switch span { display: block; position: absolute; top: 19px; left: 0px; right: 0px; height: 3px; background: white; } .cmn-toggle-switch span::before, .cmn-toggle-switch span::after { position: absolute; display: block; left: 0; width: 100%; height: 3px; background-color: #fff; content: ""; } .cmn-toggle-switch span::before { top: -10px; } .cmn-toggle-switch span::after { bottom: -10px; } /** * Style 2 * * Hamburger to "x" (htx). Takes on a hamburger shape, bars slide * down to center and transform into an "x". */ .cmn-toggle-switch__htx span { -webkit-transition: background 0 0.3s; transition: background 0 0.3s; } .cmn-toggle-switch__htx span::before, .cmn-toggle-switch__htx span::after { -webkit-transition-duration: 0.3s, 0.3s; transition-duration: 0.3s, 0.3s; -webkit-transition-delay: 0.3s, 0; transition-delay: 0.3s, 0; } .cmn-toggle-switch__htx span::before { -webkit-transition-property: top, -webkit-transform; transition-property: top, transform; } .cmn-toggle-switch__htx span::after { -webkit-transition-property: bottom, -webkit-transform; transition-property: bottom, transform; } /* active state, i.e. menu open */ .cmn-toggle-switch__htx.active span { background: none; } .cmn-toggle-switch__htx.active span:before, .cmn-toggle-switch__htx.active span:after { background: #f25454; } .cmn-toggle-switch__htx.active span::before { top: 0; -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); } .cmn-toggle-switch__htx.active span::after { bottom: 0; -webkit-transform: rotate(-45deg); -ms-transform: rotate(-45deg); transform: rotate(-45deg); } .cmn-toggle-switch__htx.active span::before, .cmn-toggle-switch__htx.active span::after { -webkit-transition-delay: 0, 0.3s; transition-delay: 0, 0.3s; }

Related: See More


Questions / Comments: