cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

            
              <html>
  
  <head>
  </head>

<body>
 <h1 class="title">Hamburger</h1>

 <!-- Begin Image -->
 <!-- Invisible Box-->
 <div class="box">
   

    <div class="plate">   
      
      <div class="bread-down-shadow">
        <div class="bread-down"></div> <!-- like copy -->
        <!-- lines/sticks-->
        <div class="bread-down-line-1"></div>
        <div class="bread-down-line-2"></div>
        <div class="bread-down-line-3"></div>
        <div class="bread-down-line-4"></div>
        <div class="bread-down-line-5"></div>
      </div> <!--end of bread-down-shadow-->
      
      <!-- meat -->
      <div class="meat-shadow">
        <div class="meat"></div>
      </div>
      
      <!-- chesse -->
      <div class="cheese"></div>
      <div class="melty-cheese-1"></div>
      <div class="melty-cheese-2"></div>
      <div class="melty-cheese-3"></div>
      
      <!-- greens -->
      <div class="greens-down"></div>
      <!-- onions -->
      <div class="onion-1"></div>
      <div class="onion-1-line-1"></div>
      <div class="onion-1-line-2"></div>
      <div class="onion-1-line-3"></div>
      <div class="onion-1-line-4"></div>
      <div class="onion-2"></div>
      <div class="onion-2-line-1"></div>
      <div class="onion-2-line-2"></div>
      <!-- greens -->
      <div class="greens-up"></div>
      
      <!-- tomato -->
      <div class="tomato"></div>
      
      <!-- upper bread with sesame-->
      <div class="bread-upper-shadow">
        <div class="bread-upper"></div> <!-- like copy -->
        <!-- lines/sticks-->
        <div class="bread-upper-line-1"></div>
        <div class="bread-upper-line-2"></div>
        <div class="bread-upper-line-3"></div>
        <div class="bread-upper-line-4"></div>
        <div class="bread-upper-line-5"></div>
        
        <div class="sesame-small-1"></div>
        <div class="sesame-small-2"></div>
        <div class="sesame-small-3"></div>
        <div class="sesame-small-4"></div>
        <div class="sesame-small-5"></div>
        <div class="sesame-small-6"></div>
        <div class="sesame-small-7"></div>
        <div class="sesame-small-8"></div>
        <div class="sesame-small-9"></div>
        <div class="sesame-small-10"></div>
        <div class="sesame-small-11"></div>
        <div class="sesame-small-12"></div>
        <div class="sesame-small-13"></div>
        
        <div class="sesame-medium-1"></div>
        <div class="sesame-medium-2"></div>
        <div class="sesame-medium-3"></div>
        <div class="sesame-medium-4"></div>
        <div class="sesame-medium-5"></div>
        <div class="sesame-medium-6"></div>
        
        <div class="sesame-big-1"></div>
        <div class="sesame-big-2"></div>
        <div class="sesame-big-3"></div>
      </div> <!--end of upper-bread-shadow-->

    </div><!-- End plate -->

 </div> <!-- End Invisible Box -->
  
  
  <div> <!-- for footer -->
    
    <h4 id="footer" class="title"><a href="https://youtu.be/lYMSWQ9DMkk" target="_blank">Watch me code it </a></h4>
      <h5 id="footer" class="title"><a href="http://www.eleftheriabatsou.com" target="_blank">Eleftheria </a> | <a href="https://codepen.io/EleftheriaBatsou" target="_blank">Projects</a> | <a href="https://www.youtube.com/channel/UCC-WwYv3DEW7Nkm_IP6VeQQ" target="_blank"> Coding videos </a></h5>
    </div> <!-- end footer -->
  
</body>
</html>
            
          
!
            
              $BG-color: #80DEEA; //light blue/green 
$Black: #000; //black

$plate: -webkit-gradient(radial, center center, 0, center center, 286, color-stop(0, #f6f8f9), color-stop(50, #E5EBEE), color-stop(51, #D7DEE3), color-stop(100, #f5f7f9));
$plate: -ms-radial-gradient(center, ellipse farthest-corner, #f6f8f9 0%, #E5EBEE 50%, #D7DEE3 51%, #f5f7f9 100%);
/* Mozilla Firefox */ 
$plate: -moz-radial-gradient(center, ellipse farthest-corner, #f6f8f9 0%, #E5EBEE 50%, #D7DEE3 51%, #f5f7f9 100%);
/* Opera */ 
$plate: -o-radial-gradient(center, ellipse farthest-corner, #f6f8f9 0%, #E5EBEE 50%, #D7DEE3 51%, #f5f7f9 100%);
/* Webkit (Safari/Chrome 10) */ 
$plate: -webkit-gradient(radial, center center, 0, center center, 286, color-stop(0, #f6f8f9), color-stop(50, #E5EBEE), color-stop(51, #D7DEE3), color-stop(100, #f5f7f9));
/* Webkit (Chrome 11+) */ 
$plate: -webkit-radial-gradient(center, ellipse farthest-corner, #f6f8f9 0%, #E5EBEE 50%, #D7DEE3 51%, #f5f7f9 100%);
/* W3C Markup */ 
$plate: radial-gradient(ellipse farthest-corner at center, #f6f8f9 0%, #E5EBEE 50%, #D7DEE3 51%, #f5f7f9 100%);

$bread: #f3c23f;
$bread-shadow: #cba231;
$bread-lines: #3E2723;
$meat: #a65c52;
$meat-shadow:#8f4731;
$cheese: #f1f005;
$cheese-border: #eebd02;
$green: #80c522;
$green-border: #219a22;
$onion: linear-gradient(to right, #9c2988 0%, #CFD8DC 100%);
$tomato: linear-gradient(to right, #F06292 0%, #f44336 100%);
$tomato-border: #e10733;
$sesame: #fde9af;


  
.title{text-align: center;}

#footer a:link{color:$Black}
#footer a:visited{color:$Black}
#footer a:hover{color:$bread-shadow}

body{background: $BG-color;}

.box{  
  position: relative;
  margin: auto;
  display: block;
  /*optional background or border*/
  //border: solid 4px red;
  
  margin-top: -2%;
  width: 600px;
  height: 420px;
  background: none;
}

.plate{
  position: absolute;
  top: 5.5%;
  left: 13%;
  width: 75%;
  height: 87%;
  background: $plate;
  border-radius: 50%; 
}

.bread-down-shadow{
  position: absolute;
  top: 22%;
  left: 22%;
  width: 57%;
  height: 59%;
  background: $bread-shadow;
  border-radius: 45%; 
}
.bread-down{
  position: absolute;
  top: 5%;
  left: 2%;
  width: 97%;
  height: 90%;
  background: $bread;
  border-radius: 45%; 
}

.bread-down-line-1{
  position: absolute;
  top: 88%;
  left: 22%;
  width: 1%;
  height: 5%;
  background: $bread-lines;
  border-radius: 45%;
  
  -webkit-clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}
.bread-down-line-2{
  position: absolute;
  top: 90%;
  left: 26%;
  width: 1%;
  height: 6%;
  background: $bread-lines;
  border-radius: 45%;
  
  -webkit-clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}
//left-->right
.bread-down-line-3{
  position: absolute;
  top: 88.5%;
  right: 22%;
  width: 1%;
  height: 5%;
  background: $bread-lines;
  border-radius: 45%;
  
  -webkit-clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}
.bread-down-line-4{
  position: absolute;
  top: 90%;
  right: 26%;
  width: 1%;
  height: 6%;
  background: $bread-lines;
  border-radius: 45%;
  
  -webkit-clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}
//the miidle one
.bread-down-line-5{
  position: absolute;
  top: 95%;
  right: 36%;
  width: 1%;
  height: 4%;
  background: $bread-lines;
  border-radius: 45%;
  
  -webkit-clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}

.meat-shadow{
  position: absolute;
  top: 17%;
  left: 22%;
  width: 57%;
  height: 59%;
  background: $meat-shadow;
  border-radius: 47%; 
}
.meat{
  position: absolute;
  top: 3%;
  width: 100%;
  height: 90%;
  background: $meat;
  border-radius: 47%; 
}

.cheese{
  position: absolute;
  top: 16%;
  left: 23%;
  width: 53%;
  height: 50%;
  background: $cheese;
  border-radius: 40%;
  border: $cheese-border 5px solid;
}
.melty-cheese-1{
  position: absolute;
  top: 68.3%;
  left: 46%;
  width: 8%;
  height: 7%;
  background: $cheese-border;
  
-webkit-clip-path: polygon(50% 100%, 22% 0, 84% 0);
clip-path: polygon(50% 100%, 22% 0, 84% 0);
}
.melty-cheese-2{
  position: absolute;
  top: 68.3%;
  left: 53%;
  width: 8%;
  height: 7%;
  background: $cheese-border;
  
-webkit-clip-path: polygon(50% 100%, 22% 0, 84% 0);
clip-path: polygon(50% 100%, 22% 0, 84% 0);
}
.melty-cheese-3{
  position: absolute;
  top: 67.5%;
  left: 56%;
  width: 8%;
  height: 11%;
  background: $cheese-border;
  
-webkit-clip-path: polygon(50% 100%, 22% 0, 84% 0);
clip-path: polygon(50% 100%, 22% 0, 84% 0);
}

.greens-down{
  position: absolute;
  top: 16%;
  left: 21%;
  width: 56%;
  height: 50%;
  background: $green;
  border-radius: 40%;
  border: $green-border 5px solid;
  
  -webkit-clip-path: polygon(99% 78%, 85% 84%, 69% 80%, 57% 90%, 41% 78%, 29% 93%, 11% 85%, 3% 70%, 1% 58%, 20% 54%, 42% 58%, 61% 53%, 86% 60%, 96% 66%);
clip-path: polygon(99% 78%, 85% 84%, 69% 80%, 57% 90%, 41% 78%, 29% 93%, 11% 85%, 3% 70%, 1% 58%, 20% 54%, 42% 58%, 61% 53%, 86% 60%, 96% 66%);
}
.onion-1{
  position: absolute;
  top: 50%;
  left: 41.5%;
  width: 36%;
  height: 7%;
  background: $onion;
  border-radius: 40%;
}
//the same color as breαd-lines, and pretty much the code is the same
.onion-1-line-1{
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0.7%;
  height: 7%;
  background: $bread-lines;
  border-radius: 45%;
  -webkit-clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}
.onion-1-line-2{
  position: absolute;
  top: 50.5%;
  left: 72%;
  width: 0.7%;
  height: 6%;
  background: $bread-lines;
  border-radius: 45%;
  -webkit-clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}
.onion-1-line-3{
  position: absolute;
  top: 50.5%;
  left: 74%;
  width: 0.5%;
  height: 6%;
  background: $bread-lines;
  border-radius: 45%;
  -webkit-clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}
.onion-1-line-4{
  position: absolute;
  top: 51.5%;
  left: 76%;
  width: 0.3%;
  height: 4%;
  background: $bread-lines;
  border-radius: 45%;
  -webkit-clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}

.greens-up{
  position: absolute;
  top: 9%;
  left: 23%;
  width: 56%;
  height: 50%;
  background: $green;
  border-radius: 40%;
  border: $green-border 5px solid;
  
-webkit-clip-path: polygon(1% 87%, 8% 79%, 25% 91%, 32% 79%, 38% 91%, 57% 82%, 60% 96%, 77% 98%, 81% 78%, 93% 87%, 98% 73%, 83% 64%, 53% 66%, 26% 57%, 9% 65%, 0% 67%);
clip-path: polygon(1% 87%, 8% 79%, 25% 91%, 32% 79%, 38% 91%, 57% 82%, 60% 96%, 77% 98%, 81% 78%, 93% 87%, 98% 73%, 83% 64%, 53% 66%, 26% 57%, 9% 65%, 0% 67%);
}

.onion-2{
  position: absolute;
  top: 51%;
  left: 21.5%;
  width: 22%;
  height: 5%;
  background: $onion;
  border-radius: 40%;
}
.onion-2-line-1{
  position: absolute;
  top: 51%;
  left: 25%;
  width: 0.4%;
  height: 5%;
  background: $bread-lines;
  border-radius: 45%;
  -webkit-clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}
.onion-2-line-2{
  position: absolute;
  top: 51%;
  left: 26%;
  width: 0.4%;
  height: 5%;
  background: $bread-lines;
  border-radius: 45%;
  -webkit-clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}

.tomato{
  position: absolute;
  top: 15.5%;
  left: 33%;
  width: 43%;
  height: 37%;
  background: $tomato;
  border-radius: 48%;
  border: $tomato-border 5px solid;
}

.bread-upper-shadow{
  position: absolute;
  top: 2%;
  left: 22%;
  width: 57%;
  height: 49%;
  background: $bread-shadow;
  border-radius: 47%; 
}
.bread-upper{
  position: absolute;
  top: 0%;
  left: 2%;
  width: 98%;
  height: 96%;
  background: $bread;
  border-radius: 47%; 
}
//exaclty the same code as for the down bread
.bread-upper-line-1{
  position: absolute;
  top: 88%;
  left: 22%;
  width: 1%;
  height: 5%;
  background: $bread-lines;
  border-radius: 45%;
  
  -webkit-clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}
.bread-upper-line-2{
  position: absolute;
  top: 90%;
  left: 26%;
  width: 1%;
  height: 6%;
  background: $bread-lines;
  border-radius: 45%;
  
  -webkit-clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}
//left-->right
.bread-upper-line-3{
  position: absolute;
  top: 88.5%;
  right: 22%;
  width: 1%;
  height: 5%;
  background: $bread-lines;
  border-radius: 45%;
  
  -webkit-clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}
.bread-upper-line-4{
  position: absolute;
  top: 90%;
  right: 26%;
  width: 1%;
  height: 6%;
  background: $bread-lines;
  border-radius: 45%;
  
  -webkit-clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}
//the miidle one
.bread-upper-line-5{
  position: absolute;
  top: 95%;
  right: 36%;
  width: 1%;
  height: 4%;
  background: $bread-lines;
  border-radius: 45%;
  
  -webkit-clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}

//change top/bottom and left/right
//small
.sesame-small-1{
  position: absolute;
  top: 15.5%;
  left: 33%;
  width: 2%;
  height: 2%;
  background: $sesame;
  border-radius: 48%;
}
.sesame-small-2{
  position: absolute;
  top: 15.5%;
  right: 33%;
  width: 2%;
  height: 2%;
  background: $sesame;
  border-radius: 48%;
}
.sesame-small-3{
  position: absolute;
  bottom: 15.5%;
  left: 33%;
  width: 2%;
  height: 2%;
  background: $sesame;
  border-radius: 48%;
}
.sesame-small-4{
  position: absolute;
  bottom: 15.5%;
  right: 33%;
  width: 2%;
  height: 2%;
  background: $sesame;
  border-radius: 48%;
}
.sesame-small-5{
  position: absolute;
  top: 34.5%;
  left: 17%;
  width: 2%;
  height: 2%;
  background: $sesame;
  border-radius: 48%;
}
.sesame-small-6{
  position: absolute;
  top: 35.5%;
  right: 23%;
  width: 2%;
  height: 2%;
  background: $sesame;
  border-radius: 48%;
}
.sesame-small-7{
  position: absolute;
  bottom: 32.5%;
  left: 23%;
  width: 2%;
  height: 2%;
  background: $sesame;
  border-radius: 48%;
}
.sesame-small-8{
  position: absolute;
  bottom: 35.5%;
  right: 26%;
  width: 2%;
  height: 2%;
  background: $sesame;
  border-radius: 48%;
}
.sesame-small-9{
  position: absolute;
  top: 12.5%;
  left: 50%;
  width: 2%;
  height: 2%;
  background: $sesame;
  border-radius: 48%;
}
.sesame-small-10{
  position: absolute;
  bottom: 12.5%;
  right: 50%;
  width: 2%;
  height: 2%;
  background: $sesame;
  border-radius: 48%;
}
.sesame-small-11{
  position: absolute;
  top: 19.5%;
  left: 77%;
  width: 2%;
  height: 2%;
  background: $sesame;
  border-radius: 48%;
}
.sesame-small-12{
  position: absolute;
  top: 38.5%;
  left: 86%;
  width: 2%;
  height: 2%;
  background: $sesame;
  border-radius: 48%;
}
.sesame-small-13{
  position: absolute;
  bottom: 36.5%;
  left: 85%;
  width: 2%;
  height: 2%;
  background: $sesame;
  border-radius: 48%;
}
//medium
.sesame-medium-1{
  position: absolute;
  top: 27.5%;
  left: 33%;
  width: 3%;
  height: 4%;
  background: $sesame;
  border-radius: 48%;
}
.sesame-medium-2{
  position: absolute;
  top: 32.5%;
  right: 36%;
  width: 3%;
  height: 4%;
  background: $sesame;
  border-radius: 48%;
}
.sesame-medium-3{
  position: absolute;
  bottom: 27.5%;
  left: 33%;
  width: 3%;
  height: 4%;
  background: $sesame;
  border-radius: 48%;
}
.sesame-medium-4{
  position: absolute;
  bottom: 25.5%;
  right: 26%;
  width: 3%;
  height: 4%;
  background: $sesame;
  border-radius: 48%;
}
.sesame-medium-5{
  position: absolute;
  bottom: 37.5%;
  left: 43%;
  width: 3%;
  height: 4%;
  background: $sesame;
  border-radius: 48%;
}
.sesame-medium-6{
  position: absolute;
  top: 45.5%;
  right: 21%;
  width: 3%;
  height: 4%;
  background: $sesame;
  border-radius: 48%;
}
//big
.sesame-big-1{
  position: absolute;
  top: 45.5%;
  left: 26%;
  width: 4%;
  height: 5%;
  background: $sesame;
  border-radius: 48%;
}
.sesame-big-2{
  position: absolute;
  top: 41.5%;
  left: 46%;
  width: 4%;
  height: 5%;
  background: $sesame;
  border-radius: 48%;
}
.sesame-big-3{
  position: absolute;
  top: 65.5%;
  left: 56%;
  width: 4%;
  height: 5%;
  background: $sesame;
  border-radius: 48%;
}

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console