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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

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

              
                <!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Document</title>
  <link rel="stylesheet" href="css/style.css" />
  <script src="https://kit.fontawesome.com/d2e32cd2ff.js" crossorigin="anonymous"></script>
</head>

<body>
  <header>
    <div class="navigation">
      <div class="container">
        <div class="header">
          <div class="upper-header">
            <div class="search-container">
              <div class="input-section">
                <input class="search" type="text" placeholder="Search" />
                <i class="fas fa-search"></i>
              </div>
            </div>
            <div class="logo-container">
              <a href="#">
                <img class="logo" src="images/logo.svg" alt="" />
              </a>
            </div>
            <div class="login-shopping">
              <a class="login" href="#">Login</a>
              <a href="#" class="shopping-bag">
                <img class="cart" src="images/cart3.svg" alt="" />(0) </a>
            </div>
          </div>
        </div>
      </div>
      <div class="container">
        <div class="navbar">
          <div class="btn btn-one">
            <button class="dropbtn">Just In</button>
          </div>
          <div class="dropdown">
            <div class="btn btn-one">
              <button class="dropbtn"><a id="custom" href="#">Customizer</a></button>
            </div>
            <div class="dropdown-content">
              <div class="header">
                <div class="container">
                  <div class="customizer-content">
                    <div class="left-content">
                      <h4 class="kind">Create a one-of-a-kind design</h4>
                      <p class="style-select"> Select a style from our collection to customize with patches. </p>
                      <div class="design">
                        <a class="cmd" href="#">Create My Design</a>
                      </div>
                    </div>
                    <div class="right-content">
                      <img id="work" src="images/work.png" alt="">
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="dropdown">
            <div class="btn btn-one">
              <button class="dropbtn">Products</button>
            </div>
            <div class="dropdown-content">
              <div class="container">
                <div class="row">
                  <div class="column">
                    <ul>
                      <li>
                        <a href="#">Bags</a>
                      </li>
                      <li>
                        <a href="#">Pouches</a>
                      </li>
                      <li>
                        <a href="#">Patches</a>
                      </li>
                    </ul>
                  </div>
                  <div class="column">
                    <ul>
                      <li>
                        <a href="#">Small Accessories</a>
                      </li>
                      <li>
                        <a href="#">SCL Takeout</a>
                      </li>
                      <li>
                        <a href="#">Travel Accessories</a>
                      </li>
                    </ul>
                  </div>
                  <div class="column">
                    <ul>
                      <li>
                        <a href="#">SCL Design Concierge</a>
                      </li>
                      <li>
                        <a href="#">Back in Stock</a>
                      </li>
                      <li>
                        <a href="#">Book Club</a>
                      </li>
                    </ul>
                  </div>
                  <div class="column">
                    <ul>
                      <li>
                        <a href="#">Gift Card</a>
                      </li>
                    </ul>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="btn btn-one">
            <button class="dropbtn">Classics</button>
          </div>
          <div class="dropdown">
            <div class="btn btn-one">
              <button class="dropbtn">Collaborations</button>
            </div>
            <div class="dropdown-content">
              <div class="container">
                <div class="row">
                  <div class="column">
                    <ul>
                      <li>
                        <a href="#">Disney Princess x SCL</a>
                      </li>
                      <li>
                        <a href="#">Hello Kitty x SCL</a>
                      </li>
                    </ul>
                  </div>
                  <div class="column">
                    <ul>
                      <li>
                        <a href="#">Barbie™ x SCL</a>
                      </li>
                      <li>
                        <a href="#">American Girl® x SCL</a>
                      </li>
                    </ul>
                  </div>
                  <div class="column">
                    <ul>
                      <li>
                        <a href="#">Roller Rabbit x SCL</a>
                      </li>
                      <li>
                        <a href="#">Lele Sadoughi x SCL</a>
                      </li>
                    </ul>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="dropdown">
            <div class="btn btn-one">
              <button class="dropbtn">Collections</button>
            </div>
            <div class="dropdown-content">
              <div class="container">
                <div class="row">
                  <div class="column">
                    <ul>
                      <li>
                        <a href="#">Classics</a>
                      </li>
                      <li>
                        <a href="#">SCL Takeout</a>
                      </li>
                      <li>
                        <a href="#">Tie Dye</a>
                      </li>
                    </ul>
                  </div>
                  <div class="column">
                    <ul>
                      <li>
                        <a href="#">Camo</a>
                      </li>
                      <li>
                        <a href="#">High Tea</a>
                      </li>
                      <li>
                        <a href="#">Ruby</a>
                      </li>
                    </ul>
                  </div>
                  <div class="column">
                    <ul>
                      <li>
                        <a href="#">Desert Dreams</a>
                      </li>
                      <li>
                        <a href="#">Seeing Stars</a>
                      </li>
                      <li>
                        <a href="#">Aprés Ski</a>
                      </li>
                    </ul>
                  </div>
                  <div class="column">
                    <ul>
                      <li>
                        <a href="#">Tis the Season</a>
                      </li>
                    </ul>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="dropdown">
            <div class="btn btn-one">
              <button class="dropbtn">Patches</button>
            </div>
            <div class="dropdown-content">
              <div class="container">
                <div class="row">
                  <div class="column">
                    <ul>
                      <li>
                        <a href="#">New</a>
                      </li>
                      <li>
                        <a href="#">High Tea Patches</a>
                      </li>
                      <li>
                        <a href="#">Aprés Ski Patches</a>
                      </li>
                      <li>
                        <a href="#">Desert Dreams Patches</a>
                      </li>
                      <li>
                        <a href="#">Seeing StarsPatches</a>
                      </li>
                      <li>
                        <a href="#">Activities</a>
                      </li>
                      <li>
                        <a href="#">Animals + Creatures</a>
                      </li>
                    </ul>
                  </div>
                  <div class="column">
                    <ul>
                      <li>
                        <a href="#">Beauty + Fashion</a>
                      </li>
                      <li>
                        <a href="#">Book Club</a>
                      </li>
                      <li>
                        <a href="#">Destinations: New York City</a>
                      </li>
                      <li>
                        <a href="#">Destinations: Hamptons</a>
                      </li>
                      <li>
                        <a href="#">Destinations: International</a>
                      </li>
                      <li>
                        <a href="#">Destinations: U.S. Cities</a>
                      </li>
                      <li>
                        <a href="#">Food + Drinks</a>
                      </li>
                    </ul>
                  </div>
                  <div class="column">
                    <ul>
                      <li>
                        <a href="#">Glitter</a>
                      </li>
                      <li>
                        <a href="#">Letters + Numbers</a>
                      </li>
                      <li>
                        <a href="#">Nature</a>
                      </li>
                      <li>
                        <a href="#">Objects + Symbols</a>
                      </li>
                      <li>
                        <a href="#">Occasions + Celebrations</a>
                      </li>
                      <li>
                        <a href="#">Rolled Embroidery</a>
                      </li>
                      <li>
                        <a href="#">Seasonal: Fall + Winter</a>
                      </li>
                    </ul>
                  </div>
                  <div class="column">
                    <ul>
                      <li>
                        <a href="#">Seasonal: Spring + Summer</a>
                      </li>
                      <li>
                        <a href="#">SCLU</a>
                      </li>
                      <li>
                        <a href="#">Social Issues</a>
                      </li>
                      <li>
                        <a href="#">Travel + Transportation</a>
                      </li>
                      <li>
                        <a href="#">Words + Phrases</a>
                      </li>
                    </ul>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="btn btn-one">
            <button class="dropbtn">Community</button>
          </div>
        </div>
      </div>
      <div class="alert">
        <div class="delivery">
          <p> All customized orders are currently expected to ship within 6 weeks. Non-customized orders are expected to ship within 7 business days. </p>
        </div>
      </div>
  </header>
  <div class="hero">
    <div class="container">
      <div class="hero-image-container">
        <img class="bag" src="images/bag.png" alt="" />
      </div>
    </div>
  </div>
  <script src="script/script.js"></script>
</body>

</html>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  align-items: center;
  border: none;
}

*:focus {
  outline: none;
}

input:focus {
  outline: none;
}

a {
  color: black;
}

body {
  font-weight: 400;
  text-transform: none;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
}

.container {
  margin-left: auto;
  margin-right: auto;
  max-width: 1240px;
  width: 100%;
  padding: 1rem 0rem 0rem 0rem;
}

.upper-header {
  display: flex;
  justify-content: space-between;
}

.search {
  height: 100%;
  width: 85%;
}

.search-container {
  border: 1px solid black;
  width: 230px;
  height: 32px;
}

.search {
  padding-left: 10px;
}

.search::placeholder {
  font-style: italic;
}

.logo {
  width: 440px;
  margin-left: -15%;
}

.login-shopping {
  width: 10%;
  display: flex;
  justify-content: space-between;
}

.cart {
  width: 25px;
  margin-right: 10px;
}

li {
  font-size: 16px;
  font-weight: 300;
}

.alert {
  background: #fee9f2;
  font-size: 16px;
}

.delivery {
  text-align: center;
}

.bag {
  width: 100%;
}

.login:hover {
  color: #fee9f2;
  transition: 0.3s;
}

.shopping-bag:hover {
  color: #fee9f2;
}

.navbar {
  display: flex;
  justify-content: space-around;
  overflow: hidden;
}

.dropdown {
  float: left;
  overflow: hidden;
}

.dropdown .dropbtn {
  border: none;
  outline: none;
  padding: 14px 16px;
  background-color: inherit;
  margin: 0;
  cursor: pointer;
}

.dropbtn {
  font-size: 16px;
  border: none;
  outline: none;
  padding: 14px 16px;
  background-color: inherit;
  margin: 0;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  width: 100%;
  left: 0;
  z-index: 1;
  box-shadow: rgba(0, 0, 0, 0.06) 2px 2px 4px 3px inset;
}

.dropdown-content .header {
  padding: 16px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.column {
  float: left;
  width: 25%;
  padding: 10px;
  height: 100%;
}

.column a {
  float: none;
  color: black;
  padding: 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.column a:hover {
  color: #c83e84;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

.customizer-content {
  display: flex;
  justify-content: space-between;
}

#work {
  margin-right: 5em;
  width: 550px;
}

.navbar {
  margin-left: auto;
  margin-right: auto;
  width: 85%;
}

.navigation {
  padding-top: 1em;
  box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset;
}

.left-content {
  margin-left: 5em;
  display: flex;
  flex-direction: column;
  height: 200px;
  align-items: stretch;
}

.style-select {
  font-size: 15px;
}

.alert {
  padding-top: 1.25em;
  padding-bottom: 1.25em;
  box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset;
}

.cmd {
  margin-top: 2em;
  display: inline-block;
  background: #393939;
  padding: 12px 35px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.33px;
  font-size: 16px;
  line-height: 20px;
  border: 2px solid #393939;
  transition: all 0.2s linear;
  -webkit-appearance: none;
  cursor: pointer;
}

.cmd:hover {
  background-color: #edb9d0;
  color: black;
}

#custom {
  color: #c83e84;
}

.btn-one {
  transition: all 0.4s;
  position: relative;
}

.btn-one span {
  transition: all 0.4s;
}

.btn-one::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  transition: all 0.4s;
  border-bottom-width: 4px;
  border-bottom-style: solid;
  border-bottom-color: black;
  transform: scale(0.1, 1);
}

.btn-one:hover::before {
  opacity: 1;
  transform: scale(1, 1);
}

.btn-one::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: all 0.4s;
}

.btn {
  line-height: 50px;
  text-align: center;
  cursor: pointer;
}

.scale-up-ver-top {
  -webkit-animation: scale-up-ver-top 0.4s cubic-bezier(0.39, 0.575, 0.565, 1)
    both;
  animation: scale-up-ver-top 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;
}

@-webkit-keyframes scale-up-ver-top {
  0% {
    -webkit-transform: scaleY(0.4);
    transform: scaleY(0.4);
    -webkit-transform-origin: 100% 0%;
    transform-origin: 100% 0%;
  }
  100% {
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
    -webkit-transform-origin: 100% 0%;
    transform-origin: 100% 0%;
  }
}
@keyframes scale-up-ver-top {
  0% {
    -webkit-transform: scaleY(0.4);
    transform: scaleY(0.4);
    -webkit-transform-origin: 100% 0%;
    transform-origin: 100% 0%;
  }
  100% {
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
    -webkit-transform-origin: 100% 0%;
    transform-origin: 100% 0%;
  }
}

              
            
!

JS

              
                // select all dropdown buttons
const buttons = document.querySelectorAll(".dropdown");

// loop through each button
buttons.forEach(button => {

  // e.target => the one that you're hovering
  button.addEventListener("mouseenter", e => {
    e.target
      .querySelector(".dropdown-content")
      .classList.add("scale-up-ver-top");
  });
  button.addEventListener("mouseleave", e => {
    e.target
      .querySelector(".dropdown-content")
      .classList.remove("scale-up-ver-top");
  });
});

              
            
!
999px

Console