Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="//code.jquery.com/jquery-2.1.1.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  <button id="drop_button">Menu</button>
  <div id="menu">MENU</div>
  
  
  
</body>
</html>
 
#menu{
  background:#faf;
  display:none;
  width:calc(100% - 20px);
}
#drop_button{
  display:block;
}
@media (min-width: 380px){
  #menu{
    display:block !important;
    width:30%;  
    float:left;
  }
  #drop_button{display:none;}
}
 
$(function(){
  
  var $menu = $("#menu");
  
  $("#drop_button").click(function(){
    $menu.stop().slideToggle();
  });
  
});
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
roXonpro
0viewers