Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <body>
  <div class="container">
    <div class="testing">
      <h1>Hello</h1>
      <p>Welcome to the [scrollable] mobile web browser-friendly navigation menu. Made for hominids with opposable thumbs that value minimalism.</p>
      <hr>
      <h3>Click the dots in the lower right hand corner >>></h3>
      <hr>
      <i>Try resizing your screen to mimic mobile sizes... then try scrolling through the tabs</i>
    </div>
    <div class="nav-container">
    <div class="bot-nav">
      <p>
        <span id="bot-menu">
          <i class="fas fa-align-justify"></i>
        </span>
        <span id="cart-menu">
          <i class="fas fa-shopping-cart"></i>
        </span>
        <span id="account-menu"><i class="fas fa-user-circle"></i></span>
        <span id="chat-menu">
          <i class="fas fa-comments"></i>
        </span>
        <span class="other-menu">
          <i class="fas fa-question-circle"></i>          
        </span>
        <span class="other-menu">
          <i class="fab fa-facebook-f"></i>
        </span>
        <span class="other-menu">
          <i class="fab fa-instagram"></i>
        </span>
        <span class="other-menu">
          <i class="fab fa-twitter"></i>
        </span>  
      </p>
      </div>
    </div> 
  </div>
  
  <div class="menu-list">
      <ul>
        <li>Home</li>
        <li>Shop</li>
        <li>Blog</li>
        <li>Cart</li>
      </ul>
    </div>
  <div class="cart-list">
    <div>
     <i class="far fa-arrow-alt-circle-down fa-2x" ></i>
    </div>
    <table>
      <tr>
        <th></th>
        <th>Item</th>
        <th>Price</th>
        <th>Qty</th>
      </tr>
      <tr>
        <td>
          <img src="https://images.unsplash.com/photo-1532296075534-cc428d395281?ixli
        b=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=f935e344ea0494c91e2cd33afe5793c3&auto=format&fit=crop&w=749&q=80">
        </td>
        <td>Super Cool Soft T-Shirt</td>
        <td>$30</td>
        <td>1</td>
        <td><button disabled>X</button></td>
      </tr>
      
      <tr>
        <td>
          <img src="https://images.unsplash.com/photo-1524498250077-390f9e378fc0?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=83079913579babb9d2c94a5941b2e69d&auto=format&fit=crop&w=751&q=80">
        </td>
        <td>Trendy Blue Work Bag</td>
        <td>$250</td>
        <td>1</td>
        <td><button disabled>X</button></td>
      </tr>
    </table>
    <hr>
      <form>
        <label>Code</label>
        <input style="width: 70px"></input>
        <button type="submit" disabled>APPLY</button>
      </form>
    <hr>
    <table class="totals">
      <th>Total</th>
      <tr>
        <td>$280.00</td>
      </tr>
    </table>
  </div>
  <div class="account-list">
    <div>
     <i class="far fa-arrow-alt-circle-down fa-2x" ></i>
    </div>
    <form>
      <label>Email</label><br>
      <input></input><br>
      <label>Password</label><br>
      <input></input><br>
    </form>
  </div>

  <div class="chat-list">
    <div>
     <i class="far fa-arrow-alt-circle-down fa-2x" ></i>
    </div>
    <form>
      <label>Name</label><br>
      <input></input><br>
      <label>Email</label><br>
      <input></input><br>
      <label>Message</label><br>
      <textarea></textarea><br>
    </form>
  </div>
  <div id="open-menu">
    <i class="fas fa-ellipsis-v fa-2x"></i>
  </div>
</body>
              
            
!

CSS

              
                body{
  background-image: url(https://c.pxhere.com/photos/c1/c8/gradient_hill_sky_ridge-1394590.jpg!d);
  height: 1400px;
  color: black;
  font-family: 'PT Serif', serif;
}

h1{
  font-size: 50px;
}

.nav-container{
  height: 60px;
  width: 100%;
  bottom: 0px;
  left: 0px;
  position: fixed;
}
.bot-nav{
  background-color: rgba(34, 34, 34, .7);
/*   background-color: rgba(14, 84, 101, .8); */
  width: 100%;
  height:100%;
/*   position: absolute; */
  text-align: center;
  overflow-x: scroll;
  overflow-y: hidden;
  font-size: 18px;
  border-left: 7px solid;
  border-right: 7px solid;
  float: bottom;
  display:none;
}
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
    display:none;
}
/* ::-webkit-scrollbar {
    height: 25px;
    background: transparent;
    display: inline-flex;
}

::-webkit-scrollbar-track {
  background-clip: content-box;  
}
 
::-webkit-scrollbar-thumb {
    width: 20px;
    height: 20px;  
    background-image: url('data:image/svg+xml;utf8,<svg aria-hidden="true" data-prefix="fas" data-icon="ellipsis-h" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-ellipsis-h fa-w-16 fa-3x"><path fill="currentColor" d="M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z" class=""></path></svg>');
    background-repeat: no-repeat;
    background-position: center center;
} */

.bot-nav p{
  display:inline-block;
  white-space:nowrap;
  text-transform: uppercase;
  font-family: 'PT Serif', serif;
/*   display: flex; */
  height: 0px;
}


#bot-menu, #cart-menu, .other-menu, #account-menu, #chat-menu{
  color: white;
  text-align: center;
  padding-left: 25px;
  padding-right: 25px;
}

.menu-list, .cart-list, .account-list, .chat-list{
  color: #efefe;
  font-family: 'PT Serif', serif;
}

.menu-list ul{
  list-style: none;
  text-align: center;
}

.menu-list ul li{
  padding: 5px;
  font-size:18px;
  align: center;
  display: block;
}

.cart-list table{
  padding-top: 80px;
  width: 100%;
}

.cart-list table td{
  padding: 5px;
  vertical-align: middle;
  text-align: center;
}

.cart-list table td button{
  padding: 8px;
  font-size: 12px;
  font-family: Arial;
  background: transparent;
  color: black;
}

.chat-list{
  color: #efefe;
  font-family: 'PT Serif', serif;
  display: none;
}

/* .chat-list form label{
  padding-top: 20px;
} */

.chat-list form textarea{
  background: transparent;
  border: solid .75px black;
}
.cart-list table td button:hover, .cart-list form button:hover{
  color: #e4525d;
  transform:scale(1.5);
/*   font-size: 16px; */
  -o-transition:.5s;
  -ms-transition:.5s;
  -moz-transition:.5s;
  -webkit-transition:.5s;
  /* ...and now for the proper property */
  transition:.5s;
}

.cart-list table.totals{
  position: absolute;
  bottom: 10px;
}

.menu-list, .cart-list, .chat-list{
  background-color: #efefef;
  width: 100%;
  height: 50%;
  position: fixed;
  bottom: 60px;
  left: 0px;
  display: none;
}

.cart-list{
  background-color: #efefef;
  width: 100%;
  height: 90%;
  position: fixed;
  bottom: 60px;
  left: 0px;
  display: none;
  overflow: scroll;
}

.cart-list img{
  position: relative;
  height: 60px;
  width: 60px;
  float: right;
/*   clip: rect(0px,60px,60px,0px); */
}

.account-list{
  background-color: #efefef;
  width: 100%;
  height: 50%;
  position: fixed;
  bottom: 60px;
  left: 0px;
  display: none;
}

/* .container{
  background-color:purple;
  height: 100%;
  widght: 100%;
  position: static;
} */

input{
  border-bottom: solid 1px black;
  border-top:none;
  background-color: transparent;
  border-left:none;
  border-right:none;
  margin-top: 10px;
}

input:focus{
  outline:none;
  border-bottom: solid #e4525d;
}



.fa-arrow-alt-circle-down:hover{
  color: black;
  transform: scale(.9);
/*   font-size: 30px; */
  -o-transition:.5s;
  -ms-transition:.5s;
  -moz-transition:.5s;
  -webkit-transition:.5s;
  /* ...and now for the proper property */
  transition:.5s;
}

button{
  background-color: black;
  color: white;
  border:none;
  padding: 20px;
  font-weight: 600;
  font-family: 'PT Serif', serif;
  letter-spacing: 3px;
  line-height: 0;
  font-size: 16px;
/*   width: 100%;
  height: 70px; */
}

button:hover{
  background-color: #e4525d;
/*   font-size: 18px; */
  transform: scale(1.2);
  -o-transition:.5s;
  -ms-transition:.5s;
  -moz-transition:.5s;
  -webkit-transition:.5s;
  /* ...and now for the proper property */
  transition:.5s;
}

form{
  text-align: center;
  vertical-align: middle;
}
.account-list form{
  padding-top: 50px;
}

.cart-list form button{
  font-size: 12px;
  font-family: Arial;
  background-color: transparent;  
  color: black;
}

.testing{
/*   height: 60px;
  width: 20%;
  background-color: blue; */
  color: white;
}

.account-list i, .cart-list i, .chat-list i{
  color: #b3b3b3;
/*   position: absolute; */
/*   left: 45%; */
  padding-top: 30px;
  margin: auto;
  display: table;
  background-color: (34,34,34,.5);
/*   text-align: center; */
}

/* .chat-list form{
  margin-top: 80px;
} */


#open-menu{
  position: fixed;
  bottom: 10px;
  right: 10px;  
/*   background-color: white; */
  width: 50px;
  height: 50px;
  text-align: center;
  vertical-align: middle;
}

#open-menu i{
  vertical-align: middle;
  color: black;
  text-shadow: rgb(255, 255, 255) 1px 2px 1px;
/*   stroke: white;
  stroke-width: 10; */
/*   text-shadow: 0px 0px 1px #ffffff; */
/*   mix-blend-mode: difference; */
}



              
            
!

JS

              
                $(document).ready(function(){ 
  
  //OPEN MAIN MENU
  $("#open-menu").click(function(){
    $(".bot-nav").toggle("slide", {direction: "right"}, 1000);
    if($("#open-menu i").hasClass("fa-ellipsis-v")){
      $("#open-menu").css({"bottom":"50px"});
      $("#open-menu i").removeClass("fa-ellipsis-v").delay(800).queue(function(){
        $(this).hide().addClass("fa-ellipsis-h").fadeIn(800).dequeue();
      });
    }else {
      $("#open-menu").css({"bottom":"10px"});
      $("#open-menu i").removeClass("fa-ellipsis-h").delay(800).queue(function(){
        $(this).hide().addClass("fa-ellipsis-v").fadeIn(800).dequeue();
      });
    }    
  });
  
  // $('i.fa-ellipsis-v').animate({ opacity: 0 }, 1000, function() {
  //     $(this).animate({ opacity: 1 }, 1000, pulsate);
  // });
  
  //PULSE MENU BUTTON
  // $('i.fa-ellipsis-v').effect("pulsate", { times:2 }, 2000);
  
  //OPEN MAIN INNER MENU LIST
  $("#bot-menu").click(function(event){
    $(".menu-list").toggle("slide",{easing: "easeInOutSine", direction: "down"},800);
    $("#cart-menu, #account-menu, .other-menu, #chat-menu").fadeToggle(100);
    closeMenu();
  });
  
  //OPEN CART BTN
  $("#cart-menu").click(function() {
    $(".cart-list").toggle("slide",{easing: "easeInOutSine", direction: "down"},800);
    $("#bot-menu, #account-menu, .other-menu, #chat-menu").fadeToggle(100);
    checkoutBtn();
  });
  
  //CART LIST
  $(".cart-list .fa-arrow-alt-circle-down").click(function(){
    $(".cart-list").toggle("slide",{easing: "easeInOutSine", direction: "down"},800);
      checkoutBtn();
      // $("#account-menu, #bot-menu, .other-menu").fadeToggle(800);
  });
  
  //OPEN CHAT BTN
  $("#chat-menu").click(function() {
    $(".chat-list").toggle("slide",{easing: "easeInOutSine", direction: "down"},800);
    $("#cart-menu, #bot-menu, .other-menu, #account-menu").fadeToggle(100);
      contactBtn();
  });
  
  //CHAT-CONTACT LIST
  $(".chat-list .fa-arrow-alt-circle-down").click(function(){
    $(".chat-list").toggle("slide",{easing: "easeInOutSine", direction: "down"},800, function(){
      contactBtn(); 
      $("#cart-menu, #bot-menu, .other-menu, #account-menu").fadeToggle(100);
    });
  });
  
  //OPEN ACCOUNT BTN
  $("#account-menu").click(function() {
    $(".account-list").toggle("slide",{easing: "easeInOutSine", direction: "down"},800);
    $("#cart-menu, #bot-menu, .other-menu, #chat-menu").fadeToggle(100);
    loginBtn();
  });
  
  //ACCOUNT LIST
  $(".account-list .fa-arrow-alt-circle-down").click(function(){
    $(".account-list").toggle("slide",{easing: "easeInOutSine", direction: "down"},800, function(){
      loginBtn(); 
    });
  });  
});

$("div.account-list").on( "swipe", function(){
  return $(".account-list").toggle("slide",{easing: "easeInOutSine", direction: "down"},800);
});

const menus = ["#bot-menu", "#cart-menu", "#account-menu"];

function closeMenu(){
  if($("#bot-menu i").hasClass("fa-align-justify")){
     $("#open-menu i").hide("fade",100);
      $("#bot-menu i").hide().switchClass("fa-align-justify", "fa-times").fadeIn(800);
    }else if ($("#bot-menu i").hasClass("fa-times")){
      $("#bot-menu i").removeClass("fa-times").addClass("fa-align-justify", {duration: 800, easing: "easeInQuad"});
      $("#open-menu i").show("slide",{direction: "right"},1200);
    };
}

//SHOW CHECKOUT BUTTON
function checkoutBtn(){
  if($("#cart-menu button").hasClass("checkout-btn") == false){ 
    $("#open-menu i").hide("fade",100);
    $("#cart-menu").hide().html("<button class='checkout-btn' disabled>CHECKOUT</button>").fadeIn(1000);
  }else if($("#cart-menu button").hasClass("checkout-btn")){
    $("#open-menu i").show("slide",{direction: "right"},1200);
    $("#cart-menu").hide().html("<i class='fas fa-shopping-cart'></i>");
    $("#account-menu, #bot-menu, .other-menu, #cart-menu, #chat-menu").fadeToggle(800);
  };
}

//SHOW LOGIN BUTTON
function loginBtn(){
  if($("#account-menu button").hasClass("login-btn") == false){
    $("#open-menu i").hide("fade",100);
    $("#account-menu").hide().html("<button class='login-btn' disabled>LOGIN</button>").fadeIn(1000);
  }else if($("#account-menu button").hasClass("login-btn")){
    $("#open-menu i").show("slide",{direction: "right"},1200);
    $("#account-menu").hide().html('<i class="fas fa-user-circle"></i>');
    $("#cart-menu, #bot-menu, .other-menu, #chat-menu, #account-menu").fadeToggle(100);
      };
}

//SHOW CONTACT BTN
function contactBtn(){
  if($("#chat-menu button").hasClass("chat-btn") == false){
    $("#open-menu i").hide("fade",100);
    $("#chat-menu").hide().html("<button class='chat-btn' disabled>CONTACT</button>").fadeIn(1000);
  }else if($("#chat-menu button").hasClass("chat-btn")){
    $("#open-menu i").show("slide",{direction: "right"},1200);
    $("#chat-menu").hide().html('<i class="fas fa-comments"></i>').fadeIn(200);
      };
}

              
            
!
999px

Console