Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
<div class="menu-wrapper">
  <ul class="menu">
    <li>
      Link 1
      <div>[dropdown 1]</div>
    </li>
    <li>
      Link 2
      <div>[dropdown 2]</div>
    </li>
    <li>
      Link 3
      <div>[dropdown 3]</div>
    </li>
    <li>
      Link 4
      <div>[dropdown 4]</div>
    </li>
    <li>
      Link 5
      <div>[dropdown 5]</div>
    </li>
    <li>
      Link 6
      <div>[dropdown 6]</div>
    </li>
    <li>
      Link 7
      <div>[dropdown 7]</div>
    </li>
    <li>
      Link 8
      <div>[dropdown 8]</div>
    </li>
    <li>
      Link 9
      <div>[dropdown 9]</div>
    </li>
    <li>
      Link 10
      <div>[dropdown 10]</div>
    </li>
  </ul>
</div>
</body>
</html>
 
.menu-wrapper {
  overflow: hidden;
  will-change: opacity;
}
.menu {
  display: flex;
  list-style: none;
  padding: 0;
  
  li {
    padding: 10px;
    flex-shrink: 0;
    
    &:hover div {
      display: block;
    }
    
    div {
      display: none;
      position: absolute;
      left: 0;
      right: 0;
      text-align: center;
      background: #333;
      color: #FFF;
      padding: 20px;
    }
  }
}
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers