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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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>
  <div id="app"> <!-- for vue js -->
<body>
 <h1 class="title">Pizza</h1>
 <h4 class="title">with animation</h4>
 
 <!-- Begin Image -->
 <!-- Invisible Box-->
 <div class="box">
   

    <div class="plate">   
      <div class="bread">
        <div class="bread-sticks-1"></div>
        <div class="bread-sticks-2"></div>
        <div class="bread-sticks-3"></div>
        <div class="bread-sticks-4"></div>
        <div class="bread-sticks-5"></div>
      </div>
      
      <div class="base">
        <!-- inside the base bcs I wnat the to be in the borders-->
        <!-- half tomatoes and whole tomatos -->
        <div class="tomato-1"></div>
        <div class="tomato-2"></div>
        <div class="tomato-3"></div>
        <!-- half pepperoni -->
        <div class="pepperoni-4">
          <div class="pepperoni-bullet-1"></div>
          <div class="pepperoni-bullet-2"></div>
          <div class="pepperoni-bullet-3"></div>
          <div class="pepperoni-bullet-4"></div>
          <div class="pepperoni-bullet-5"></div>
          <div class="pepperoni-bullet-6"></div>
        </div>
        <div class="pepperoni-5">
          <div class="pepperoni-bullet-1"></div>
          <div class="pepperoni-bullet-2"></div>
          <div class="pepperoni-bullet-3"></div>
          <div class="pepperoni-bullet-4"></div>
          <div class="pepperoni-bullet-5"></div>
          <div class="pepperoni-bullet-6"></div></div>
        </div>
      <!-- bites -->
      <div class="bite-1"></div>
      <div class="bite-2"></div>
      <!-- chhese in the border -->
      <div class="meltyCheece-1"></div>
      <div class="meltyCheece-2"></div>
      <div class="meltyCheece-3"></div>
      <div class="meltyCheece-4"></div>
      <div class="meltyCheece-5"></div>
      
      <!-- greens -->
      <div class="greens-1"></div>
      <div class="greens-2"></div>
      <div class="greens-3"></div>
      <div class="greens-4"></div>
      <div class="greens-5"></div>
      <div class="greens-6"></div>
      <div class="greens-7"></div>
      <!-- greens outside of the pizza -->
      <div class="greens-out-1"></div>
      <div class="greens-out-2"></div>
      <div class="greens-out-3"></div>
      <div class="greens-out-4"></div>
      
      <!-- oils -->
      <div class="oil-1"></div>
      <div class="oil-2"></div>
      <div class="oil-3"></div>
      <div class="oil-4"></div>
      
      <!-- pepperoni with small bullets -->
      <div class="pepperoni-1">
        <div class="pepperoni-bullet-1"></div>
        <div class="pepperoni-bullet-2"></div>
        <div class="pepperoni-bullet-3"></div>
        <div class="pepperoni-bullet-4"></div>
        <div class="pepperoni-bullet-5"></div>
        <div class="pepperoni-bullet-6"></div>
      </div>
      <div class="pepperoni-2">
      <div class="pepperoni-bullet-1"></div>
        <div class="pepperoni-bullet-2"></div>
        <div class="pepperoni-bullet-3"></div>
        <div class="pepperoni-bullet-4"></div>
        <div class="pepperoni-bullet-5"></div>
        <div class="pepperoni-bullet-6"></div></div>
      <div class="pepperoni-3">
       <div class="pepperoni-bullet-1"></div>
        <div class="pepperoni-bullet-2"></div>
        <div class="pepperoni-bullet-3"></div>
        <div class="pepperoni-bullet-4"></div>
        <div class="pepperoni-bullet-5"></div>
        <div class="pepperoni-bullet-6"></div>
      </div>
       
  
    </div><!-- End plate -->
    

   
 </div> <!-- End Invisible Box -->
  
  
  <div> <!-- for footer -->
    <h4 id="footer" class="title"><a href="https://youtu.be/ehYPIP5u32U" 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>
  </div> <!-- end of vue js | id="app" -->
</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: #b65e13;
$bread-sticks: #7e2501;
$bites: #eaeff1;
$cheese: yellow;
$meltyCheese: #fde249;
$greens: #07ac49;
$oils-border: #4d3d26;
$tomato: #e4313b;
$tomato-border: #951725;
$pepperoni: #e05a5a;
$pepperoni-bullets: #FFF3E0;


  
.title{text-align: center;}

#footer a:link{color:$Black}
#footer a:visited{color:$Black}
#footer a:hover{color:$pepperoni}

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%; 
  
    
  //this is for the animation 
  //I commented below
  animation: spinPlate 5s 2; //5 secs,  2 times
}

.bread{
  position: absolute;
  top: -4%;
  left: 4%;
  width: 99%;
  height: 89%;
  background: $bread;
  border-radius: 10%; 
  
-webkit-clip-path: polygon(55% 1%, 98% 48%, 79% 59%, 47% 25%);
clip-path: polygon(55% 1%, 98% 48%, 79% 59%, 47% 25%);
}

.bread-sticks-1{
  position: absolute;
  top: 6%;
  left: 18%;
  width: 60%;
  height: 9%;
  background: $bread-sticks;
  
-webkit-clip-path: polygon(25% 0%, 76% 0, 48% 100%, 0% 100%);
clip-path: polygon(25% 0%, 76% 0, 48% 100%, 0% 100%);
}
.bread-sticks-2{
  position: absolute;
  top: 13%;
  left: 19%;
  width: 60%;
  height: 9%;
  background: $bread-sticks;
  
-webkit-clip-path: polygon(25% 0%, 76% 0, 48% 100%, 0% 100%);
clip-path: polygon(25% 0%, 76% 0, 48% 100%, 0% 100%);
}
.bread-sticks-3{
  position: absolute;
  top: 28%;
  left: 39%;
  width: 55%;
  height: 4%;
  background: $bread-sticks;
  
-webkit-clip-path: polygon(25% 0%, 76% 0, 48% 100%, 0% 100%);
clip-path: polygon(25% 0%, 76% 0, 48% 100%, 0% 100%);
}
.bread-sticks-4{
  position: absolute;
  top: 38%;
  left: 49%;
  width: 55%;
  height: 4%;
  background: $bread-sticks;
  
-webkit-clip-path: polygon(25% 0%, 76% 0, 48% 100%, 0% 100%);
clip-path: polygon(25% 0%, 76% 0, 48% 100%, 0% 100%);
}
.bread-sticks-5{
  position: absolute;
  top: 41%;
  left: 59%;
  width: 55%;
  height: 4%;
  background: $bread-sticks;
  
-webkit-clip-path: polygon(25% 0%, 76% 0, 48% 100%, 0% 100%);
clip-path: polygon(25% 0%, 76% 0, 48% 100%, 0% 100%);
}

.base{
  position: absolute;
  top: 1%;
  left: 16%;
  width: 75%;
  height: 87%;
  background: $cheese;
  border-radius: 10%; 
  //need the z-index to cover the "meltycheese"
  z-index: 1;
  -webkit-clip-path: polygon(0 100%, 100% 50%, 54% 0);
clip-path: polygon(0 100%, 100% 50%, 54% 0);
}

.bite-1{
  position: absolute;
  top: 55%;
  left: 23%;
  width: 15%;
  height: 17%;
  background: #E5EBEE;
  border-radius: 10%;
  //need the z-index to see the plate and not the base
  z-index: 1;
  -webkit-clip-path: circle(50% at 0 50%);
clip-path: circle(50% at 0 50%);
}
.bite-2{
  position: absolute;
  top: 48%;
  left: 28.5%;
  width: 15%;
  height: 17%;
  background: $bites;
  border-radius: 10%;
  z-index: 1;
  -webkit-clip-path: circle(50% at 0 50%);
clip-path: circle(50% at 0 50%);
}

.meltyCheece-1{
  position: absolute;
  top: 76%;
  left: 22%;
  width: 8%;
  height: 13%;
  background: $meltyCheese;
  border-radius: 10%; 
  
  -webkit-clip-path: polygon(40% 100%, 24% 82%, 37% 63%, 31% 45%, 31% 29%, 47% 18%, 68% 19%, 76% 36%, 79% 54%, 66% 65%, 66% 77%, 66% 91%);
clip-path: polygon(40% 100%, 24% 82%, 37% 63%, 31% 45%, 31% 29%, 47% 18%, 68% 19%, 76% 36%, 79% 54%, 66% 65%, 66% 77%, 66% 91%);
}
.meltyCheece-2{
  position: absolute;
  top: 72%;
  left: 26%;
  width: 8%;
  height: 13%;
  background: $meltyCheese;
  border-radius: 10%; 
  
  -webkit-clip-path: polygon(40% 100%, 24% 82%, 37% 63%, 31% 45%, 31% 29%, 47% 18%, 68% 19%, 76% 36%, 79% 54%, 66% 65%, 66% 77%, 66% 91%);
clip-path: polygon(40% 100%, 24% 82%, 37% 63%, 31% 45%, 31% 29%, 47% 18%, 68% 19%, 76% 36%, 79% 54%, 66% 65%, 66% 77%, 66% 91%);
}
.meltyCheece-3{
  position: absolute;
  top: 65%;
  left: 34%;
  width: 8%;
  height: 13%;
  background: $meltyCheese;
  border-radius: 10%; 
  
  -webkit-clip-path: polygon(40% 100%, 24% 82%, 37% 63%, 31% 45%, 31% 29%, 47% 18%, 68% 19%, 76% 36%, 79% 54%, 66% 65%, 66% 77%, 66% 91%);
clip-path: polygon(40% 100%, 24% 82%, 37% 63%, 31% 45%, 31% 29%, 47% 18%, 68% 19%, 76% 36%, 79% 54%, 66% 65%, 66% 77%, 66% 91%);
}
.meltyCheece-4{
  position: absolute;
  top: 65%;
  left: 39%;
  width: 8%;
  height: 13%;
  background: $meltyCheese;
  border-radius: 10%; 
  
  -webkit-clip-path: polygon(40% 100%, 24% 82%, 37% 63%, 31% 45%, 31% 29%, 47% 18%, 68% 19%, 76% 36%, 79% 54%, 66% 65%, 66% 77%, 66% 91%);
clip-path: polygon(40% 100%, 24% 82%, 37% 63%, 31% 45%, 31% 29%, 47% 18%, 68% 19%, 76% 36%, 79% 54%, 66% 65%, 66% 77%, 66% 91%);
}
.meltyCheece-5{
  position: absolute;
  top: 60%;
  left: 42%;
  width: 8%;
  height: 18%;
  background: $meltyCheese;
  border-radius: 10%; 
  
  -webkit-clip-path: polygon(40% 100%, 24% 82%, 37% 63%, 31% 45%, 31% 29%, 47% 18%, 68% 19%, 76% 36%, 79% 54%, 66% 65%, 66% 77%, 66% 91%);
clip-path: polygon(40% 100%, 24% 82%, 37% 63%, 31% 45%, 31% 29%, 47% 18%, 68% 19%, 76% 36%, 79% 54%, 66% 65%, 66% 77%, 66% 91%);
}

.greens-1{
  position: absolute;
  top: 20%;
  left: 49%;
  width: 4%;
  height: 6%;
  background: $greens;
  border-radius: 10%; 
  z-index: 1;
}
.greens-2{
  position: absolute;
  top: 28%;
  left: 63%;
  width: 4%;
  height: 6%;
  background: $greens;
  border-radius: 10%; 
  z-index: 1;
}
.greens-3{
  position: absolute;
  top: 40%;
  left: 43%;
  width: 4%;
  height: 6%;
  background: $greens;
  border-radius: 10%; 
  z-index: 1;
}
.greens-4{
  position: absolute;
  top: 55%;
  left: 49%;
  width: 4%;
  height: 6%;
  background: $greens;
  border-radius: 10%; 
  z-index: 1;
}
.greens-5{
  position: absolute;
  top: 75%;
  left: 23%;
  width: 4%;
  height: 6%;
  background: $greens;
  border-radius: 10%; 
  z-index: 1;
}
.greens-6{
  position: absolute;
  top: 64%;
  left: 32%;
  width: 4%;
  height: 6%;
  background: $greens;
  border-radius: 10%; 
  z-index: 1;
}
.greens-7{
  position: absolute;
  top: 44%;
  left: 52%;
  width: 4%;
  height: 6%;
  background: $greens;
  border-radius: 10%; 
  z-index: 1;
}

/* no need of z-index here */
.greens-out-1{
  position: absolute;
  top: 24%;
  left: 32%;
  width: 4%;
  height: 6%;
  background: $greens;
  border-radius: 10%; 
}
.greens-out-2{
  position: absolute;
  top: 28%;
  left: 33%;
  width: 4%;
  height: 6%;
  background: $greens;
  border-radius: 10%; 
}
.greens-out-3{
  position: absolute;
  top: 20%;
  left: 34%;
  width: 4%;
  height: 6%;
  background: $greens;
  border-radius: 10%; 
}
.greens-out-4{
  position: absolute;
  top: 19%;
  left: 26%;
  width: 4%;
  height: 6%;
  background: $greens;
  border-radius: 10%; 
}

/* the oils have border for effect */
/* I need the z-index bcs the base has also */
.oil-1{
  position: absolute;
  top: 19%;
  left: 28%;
  width: 4%;
  height: 6%;
  background: $Black;
  border: solid 5px $oils-border;
  border-radius: 50%; 
}
.oil-2{
  position: absolute;
  top: 29%;
  left: 48%;
  width: 4%;
  height: 6%;
  background: $Black;
  border: solid 5px $oils-border;
  border-radius: 50%; 
  z-index: 1;
}
.oil-3{
  position: absolute;
  top: 34%;
  left: 78%;
  width: 4%;
  height: 6%;
  background: $Black;
  border: solid 5px $oils-border;
  border-radius: 50%; 
  z-index: 1;
}
.oil-4{
  position: absolute;
  top: 67%;
  left: 28%;
  width: 4%;
  height: 6%;
  background: $Black;
  border: solid 5px $oils-border;
  border-radius: 50%; 
  z-index: 1;
}

.tomato-1{
  position: absolute;
  top: 57%;
  left: 18%;
  width: 34%;
  height: 36%;
  background: $tomato;
  border: solid 8px $tomato-border;
  border-radius: 50%; 
  z-index: 1;
}
.tomato-2{
  position: absolute;
  top: 45%;
  left: 68%;
  width: 24%;
  height: 26%;
  background: $tomato;
  border: solid 8px $tomato-border;
  border-radius: 50%; 
  z-index: 1;
}
.tomato-3{
  position: absolute;
  top: -2%;
  left: 28%;
  width: 24%;
  height: 26%;
  background: $tomato;
  border: solid 8px $tomato-border;
  border-radius: 50%; 
  z-index: 1;
}

.pepperoni-1{
  position: absolute;
  top: 12%;
  left: 6%;
  width: 14%;
  height: 16%;
  background: $pepperoni;
  border: solid 2px $tomato-border;
  border-radius: 50%; 
  z-index: 1;
}
.pepperoni-2{
  position: absolute;
  top: 35%;
  left: 55%;
  width: 14%;
  height: 16%;
  background: $pepperoni;
  border: solid 2px $tomato-border;
  border-radius: 50%; 
  z-index: 1;
}
.pepperoni-3{
  position: absolute;
  top: 55%;
  left: 34.5%;
  width: 14%;
  height: 16%;
  background: $pepperoni;
  border: solid 2px $tomato-border;
  border-radius: 50%; 
  z-index: 1;
}
.pepperoni-4{
  position: absolute;
  top: 41%;
  left: 13.5%;
  width: 17%;
  height: 19%;
  background: $pepperoni;
  border: solid 2px $tomato-border;
  border-radius: 50%; 
  z-index: 1;
}
.pepperoni-5{
  position: absolute;
  top: 91%;
  left: 3%;
  width: 17%;
  height: 19%;
  background: $pepperoni;
  border: solid 2px $tomato-border;
  border-radius: 50%; 
  z-index: 1;
}

//the same bullets for all the pepperonis 
.pepperoni-bullet-1{
  position: absolute;
  top: 45%;
  left: 20%;
  width: 8%;
  height: 9%;
  background: $pepperoni-bullets;
  border-radius: 50%; 
  z-index: 1;
}
.pepperoni-bullet-2{
  position: absolute;
  top: 45%;
  right: 20%;
  width: 8%;
  height: 9%;
  background: $pepperoni-bullets;
  border-radius: 50%; 
  z-index: 1;
}
.pepperoni-bullet-3{
  position: absolute;
  top: 25%;
  left: 45%;
  width: 8%;
  height: 9%;
  background: $pepperoni-bullets;
  border-radius: 50%; 
  z-index: 1;
}
.pepperoni-bullet-4{
  position: absolute;
  bottom: 25%;
  left: 45%;
  width: 8%;
  height: 9%;
  background: $pepperoni-bullets;
  border-radius: 50%; 
  z-index: 1;
}
.pepperoni-bullet-5{
  position: absolute;
  top: 25%;
  right: 25%;
  width: 8%;
  height: 9%;
  background: $pepperoni-bullets;
  border-radius: 50%; 
  z-index: 1;
}
.pepperoni-bullet-6{
  position: absolute;
  bottom: 25%;
  left: 25%;
  width: 8%;
  height: 9%;
  background: $pepperoni-bullets;
  border-radius: 50%; 
  z-index: 1;
}


//css animations
//animation of spinMe


@keyframes spinPlate{
  0%{ //for 0sec
    transform: rotate(0deg);  
  }
  100%{ //for all sec
    transform: rotate(360deg);
  }
  
}



            
          
!
999px
Loading ..................

Console