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

              
                <div class="panel-1">
  <img id="close-button" src="https://assets.codepen.io/6060109/food-close-x.png">
  <div class="inner-container">
    <img src="https://assets.codepen.io/6060109/hamburger+1.png">
    <h2>Choose a dish</h2>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Facilisis duis posuere accumsan, in ut vel iaculis fusce posuere.</p>
    <button id="btn-1">Next →</button>
  </div>
  <div class="dots-ctr">
    <div class="dot green"></div>
    <div class="dot"></div>
    <div class="dot"></div>
  </div>
</div>

<div class="panel-2">
  <img id="close-button" src="https://assets.codepen.io/6060109/food-close-x.png">
  <div class="inner-container">
    <img src="https://assets.codepen.io/6060109/food-happy.png">
    <h2>Confirmation</h2>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Facilisis duis posuere accumsan, in ut vel iaculis fusce posuere.</p>
    <div id="food-selection">
      <img src="https://assets.codepen.io/6060109/Rectangle.png">
      <div class="food-name-price">
        <h5>Big Mac Menu</h5>
        <h6>$29.99</h6> 
      </div>
      <a href="#">Change</a>
    </div>
    <button id="btn-2"><span>I'm Ready to Eat!</span></button>
  </div>
  <div class="dots-ctr">
    <div class="dot"></div>
    <div class="dot green"></div>
    <div class="dot"></div>
  </div>
</div>

<div class="panel-3">
  <img id="close-button" src="https://assets.codepen.io/6060109/food-close-x.png">
  <div class="inner-container">
    <img src="https://assets.codepen.io/6060109/delivery-man+1.png">
    <h2>Your order process begins</h2>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Facilisis duis posuere accumsan, in ut vel iaculis fusce posuere.</p>
    <button id="btn-3">Track on the map</button>
  </div>
  <div class="dots-ctr">
    <div class="dot"></div>
    <div class="dot"></div>
    <div class="dot green"></div>
  </div>
</div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css2?family=Ubuntu&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;800&display=swap');

* {
  margin: 0;
  padding: 0;
}
body, html {
  min-width: 100%;
  min-height: 100vh;
}

body {
  background: url('https://assets.codepen.io/6060109/ZigZag.png');
  background-size: cover;
}

h2, h5 {
  color: #2F463D;
}

h2, h5, h6, a, button {
  font-family: Montserrat;
}

.panel-1, .panel-2, .panel-3 {
  width: 90%;
  width: 350px;
  height: 600px;
  background-color: #fff;
  margin: 70px auto;
  box-shadow: 0px 40px 40px -20px #3C7B61;
  border-radius: 5px;
  position: relative;
  transition: all 300ms ease-out;
}

#close-button {
  position: absolute;
  top: 15px;
  right: 15px;
}

.inner-container {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  padding: 55px 45px;
}

.inner-container > h2 {
  margin: 20px 0 10px;
  font-weight: 600;
  font-size: 22px;
}

.inner-container > p {
  font-family: Ubuntu;
  font-size: 14px;
  line-height: 26px;
  color: #828282;
}

#food-selection {
  display: flex;
  align-items: center;
  background-color: #F0FFF5;
  border-radius: 5px;
  margin: 40px 0 30px;
}

.food-name-price {
  width: 50%;
  text-align: left;
  padding-left: 15px;
}

.food-name-price h5 {
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 3px;
}

.food-name-price h6 {
  font-weight: 500;
  color: #7A8F85;
  font-size: 12px;
}

#food-selection a {
  color: #467A66;
  font-weight: bold;
  font-size: 12px;
}

button {
  width: 100%;
  padding: 15px 0;
  color: white;
  background-color: green;
  border: none;
  font-weight: 700;
  font-size: 15px;
  background: #46A67E;
  border-radius: 5px;
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
  box-shadow: 0px 20px 20px rgba(103, 189, 153, 0.2);
  transition: .3s ease all;
}

button:hover {
  opacity: .8;
  transition: .3s ease-in-out all;
  cursor: pointer;
}

.dots-ctr {
  display: flex;
  width: 15%;
  justify-content: space-between;
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
}

.dot {
  width: 8px;
  height: 8px;
  background-color: #E0E0E0;
  border-radius: 100%;
}

.dot.green {
  background-color: #67BD99;
}

.panel-1, .panel-3{
  display: none;
}

@media only screen and (min-width: 1070px){
  
  body{
    display:flex;
    align-items: center;
  }
  
  .panel-1, .panel-2, .panel-3 {
  display: inline-block;
  }
  
  .panel-2:hover {
  z-index: 99;
  transform: scale(1.2);
  transition: .3s ease-in-out all;
  }
  
  #btn-2:hover span {
  display: none;
}
  
  #btn-2:hover:before {
    content: "Right. Want to eat!";
}
   #btn-2:hover{
    background-color: #59D2A0;
  }
  
  #food-selection a:hover {
    text-decoration: none;
    color: #59D2A0;
  }
  
  #btn-1, #btn-3{
    background-color: #979797;
  }

  #btn-1{
  margin-top: 70px;
  }
  
  #btn-3{
  margin-top: 50px;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console