Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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="navbar">
  <a href="https://www.lambdatest.com/?utm_source=urlredirect" target = "_blank"><span><img src="https://user-images.githubusercontent.com/39921508/243080828-b69e0006-87b5-45e6-9462-2d65f7ab8855.svg" ></span></a>
      <div class="dropdown">
    <button class="dropbtn">Platform
      <i class="fa fa-caret-down"></i>
    </button>
    <div class="dropdown-content">
      <a href="#">Real Time Testing</a>
      <a href="#">Real Devices Cloud</a>
      <a href="#">Test Intelligence</a>
      <a href="#">Native Mobile App Testing</a>
    </div>
  </div> 
      <div class="dropdown">
    <button class="dropbtn">Enterprise
      <i class="fa fa-caret-down"></i>
    </button>
    <div class="dropdown-content">
      <a href="#">Digital Experience Testing</a>
      <a href="#">Enterprise Execution Environment</a>
     </div>
  </div> 
  <div class="dropdown">
    <button class="dropbtn">Resources
      <i class="fa fa-caret-down"></i>
    </button>
    <div class="dropdown-content">
      <a href="#">Blog</a>
      <a href="#">Webinars</a>
      <a href="#">Videos</a>
      <a href="#">Documentation</a>
    </div>
  </div> 
      <div class="dropdown">
    <button class="dropbtn">Developers
      <i class="fa fa-caret-down"></i>
    </button>
    <div class="dropdown-content">
      <a href="#">Mobile App Testing</a>
      <a href="#">Selenium</a>
      <a href="#">Cypress</a>
      <a href="#">Real Time Web Testing</a>
    </div>
  </div> 
  
      <div class="dropdown">
    <button class="dropbtn">Resources
      <i class="fa fa-caret-down"></i>
    </button>
    <div class="dropdown-content">
      <a href="#">Online Browser</a>
      <a href="#">Selenium Testing</a>
      <a href="#">Cypress Testing</a>
      <a href="#">Playwright Testing</a>
    </div>
  </div> 
</div>
   
   
   
   
   
    <div class="container">
      <div class="child child-1">Linear</div>
      <div class="child child-2">Ease</div>
      <div class="child child-">Ease-In</div>
      <div class="child child-4">Ease-out</div>
      <div class="child child-3">Ease-in-out</div>
    </div>
  </body>
              
            
!

CSS

              
                * {
  padding: 0;
  margin: 0;
}


body {
 background-color: #b7eaee;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #b7eaee;
    color: #04383b;
    font-family: 'Roboto Slab', serif;
}
.navbar {
  overflow: hidden;
/*   background-color: white; */
  display: flex;
  
  align-items: center;
}

.navbar a {
  font-size: 16px;
  color: black;
  text-align: center;
  text-decoration: none;
  padding: 14px 8px; /* Adjusted padding */
}

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

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

.navbar a:hover,
.dropdown:hover .dropbtn {
 text-decoration: underline;
  background-color:#26c1cb;
  color: #000000;
  font-weight: bold;
  border-radius: 5px;
}

.dropdown-content {
  display: none;
  position: absolute;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

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

.dropdown-content a:hover {
  background-color: #7ddae0;
  transform: scaleY(1.2);
}

.dropdown:hover .dropdown-content {
  display: block;
}
/* Media query for responsiveness */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar a {
    width: 100%;
    text-align: left;
    padding: 10px 16px;
  }

  .navbar li {
    margin: 10px 0;
  }
}


.container {
  width: 250px;
  height: 250px;
  border-radius: 10px;
  position: absolute;
  left: 0;
  right: 0;
  margin-top: 4%;
  margin-left: auto;
  margin-right: auto;
}
.child {
  background-color:#26c1cb;
  margin-top: 20px;
  width: 300px;
  text-align: center;
  padding: 25px;
  transition-property: width;
  transition-duration: 2s;
}

.child:hover {
  width: 500px;
  background-color: #087076;
  font-weight: 10px;
}

.child-1 {
  transition-timing-function: linear;
}
.child-2 {
  transition-timing-function: ease;
}
.child-3 {
  transition-timing-function: ease-in;
}
.child-4 {
  transition-timing-function: ease-out;
}
.child-5 {
  transition-timing-function: ease-in-out;
}

              
            
!

JS

              
                
              
            
!
999px

Console