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>

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

 <!-- Begin Image -->
 <!-- Invisible Box-->
 <div class="box">
   
   <div class="base"> <!-- brown -->
     <div class="base-copy"> <!-- light pink -->
       <div class="base-copy-whipped-cream">
         
         <div class="vertical-line-1"></div>
         <div class="vertical-line-2"></div>
         <div class="vertical-line-3"></div>
         <div class="vertical-line-4"></div>
         <div class="vertical-line-5"></div>
         
         <div class="horizontal-line-1"></div>
         <div class="horizontal-line-2"></div>
         <div class="horizontal-line-3"></div>
         <div class="horizontal-line-4"></div>
         
         <!-- 
          1st write all the classes for whipped-cream
          2nd write the cherry class
          3rd write the cherry-bullet class
          -->
         
         <div class="whipped-cream-0deg">
           <div class="cherry">
             <div class="cherry-bullet"></div>
           </div>
         </div>
         <div class="whipped-cream-180deg">
           <div class="cherry">
             <div class="cherry-bullet"></div>
           </div>
         </div>
         <div class="whipped-cream-45deg">
           <div class="cherry">
             <div class="cherry-bullet"></div>
           </div>
         </div>
         <div class="whipped-cream--36deg">
           <div class="cherry">
             <div class="cherry-bullet"></div>
           </div>
         </div>     
         <div class="whipped-cream-90deg">
           <div class="cherry">
             <div class="cherry-bullet"></div>
           </div>
         </div>
         <div class="whipped-cream--90deg">
           <div class="cherry">
             <div class="cherry-bullet"></div>
           </div>
         </div>
         <div class="whipped-cream-138deg">
           <div class="cherry">
             <div class="cherry-bullet"></div>
           </div>
         </div>
         <div class="whipped-cream--145deg">
           <div class="cherry">
             <div class="cherry-bullet"></div>
           </div>
         </div>
                
       </div> <!-- end of base-copy-whipped-cream-->
       
     </div> <!-- end of base-copy-->
   </div> <!-- end of base-->


 </div> <!-- End Invisible Box -->
  
  
  <div> <!-- for footer -->
      <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
$base: #c27d38; //brown
$whipped-cream-border: #eba19d; //light pink
$whipped-cream: #ffffff; //white
$cherry:#bb2a3e; //dark red
$cherry-bullet: #cbcbcb; //light grey
$cream:#e25569; //pink
$lines:#f7d186; //yellow/brown

  
.title{text-align: center;}

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

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: 460px;
  background: none;
}


.base{
  position: absolute;
  top: 0%;
  left: 3.5%;
  width: 92%;
  height: 99%;
  background: $base;
  border-radius: 50%;
  border: solid 2px $Black;  
  
  //write this at the end
  animation: spinMe 5s 1;
}
.base-copy{
  position: absolute;
  top: -2%;
  right: 0%;
  width: 96%;
  height: 92%;
  background: $whipped-cream-border;
  border-radius: 50%;
  border: solid 2px $Black;  
}

.base-copy-whipped-cream{
  position: absolute;
  top: 0%;
  right: 2%;
  width: 80%;
  height: 80%;
  background: $cream;
  border-radius: 50%;
  border: solid 35px $whipped-cream;
}

.vertical-line-1{
  position: absolute;
  top: 8%;
  left: 16%;
  width: 65%;
  height: 5%;
  background: $lines;
  border: solid 1px $Black;
  
  
  //shadow
webkit-box-shadow: -12px -12px 22px 0px rgba(235,161,157,1);
-moz-box-shadow: -12px -12px 22px 0px rgba(235,161,157,1);
box-shadow: -12px -12px 22px 0px rgba(235,161,157,1);
}
.vertical-line-2{
  position: absolute;
  top: 28%;
  left: 5%;
  width: 89%;
  height: 5%;
  background: $lines;
  border: solid 1px $Black;
  
  
  //shadow
webkit-box-shadow: -12px -12px 22px 0px rgba(235,161,157,1);
-moz-box-shadow: -12px -12px 22px 0px rgba(235,161,157,1);
box-shadow: -12px -12px 22px 0px rgba(235,161,157,1);
}
.vertical-line-3{
  position: absolute;
  top: 48%;
  left: 6%;
  width: 90%;
  height: 5%;
  background: $lines;
  border: solid 1px $Black;
  
  
  //shadow
webkit-box-shadow: -12px -12px 22px 0px rgba(235,161,157,1);
-moz-box-shadow: -12px -12px 22px 0px rgba(235,161,157,1);
box-shadow: -12px -12px 22px 0px rgba(235,161,157,1);
}
.vertical-line-4{
  position: absolute;
  top: 68%;
  left: 6%;
  width: 85%;
  height: 5%;
  background: $lines;
  border: solid 1px $Black;
  
  
  //shadow
webkit-box-shadow: -12px -12px 22px 0px rgba(235,161,157,1);
-moz-box-shadow: -12px -12px 22px 0px rgba(235,161,157,1);
box-shadow: -12px -12px 22px 0px rgba(235,161,157,1);
}
.vertical-line-5{
  position: absolute;
  top: 88%;
  left: 24%;
  width: 50%;
  height: 5%;
  background: $lines;
  border: solid 1px $Black;
  
  
  //shadow
webkit-box-shadow: -12px -12px 22px 0px rgba(235,161,157,1);
-moz-box-shadow: -12px -12px 22px 0px rgba(235,161,157,1);
box-shadow: -12px -12px 22px 0px rgba(235,161,157,1);
}

.horizontal-line-1{
  position: absolute;
  top: 8%;
  left: 16%;
  width: 5%;
  height: 82%;
  background: $lines;
  border: solid 1px $Black;
  
  
  //shadow
webkit-box-shadow: -12px -12px 22px 0px rgba(235,161,157,1);
-moz-box-shadow: -12px -12px 22px 0px rgba(235,161,157,1);
box-shadow: -12px -12px 22px 0px rgba(235,161,157,1);
}
.horizontal-line-2{
  position: absolute;
  top: 8%;
  left: 36%;
  width: 5%;
  height: 89%;
  background: $lines;
  border: solid 1px $Black;
  
  
  //shadow
webkit-box-shadow: -12px -12px 22px 0px rgba(235,161,157,1);
-moz-box-shadow: -12px -12px 22px 0px rgba(235,161,157,1);
box-shadow: -12px -12px 22px 0px rgba(235,161,157,1);
}
.horizontal-line-3{
  position: absolute;
  top: 8%;
  left: 56%;
  width: 5%;
  height: 89%;
  background: $lines;
  border: solid 1px $Black;
  
  
  //shadow
webkit-box-shadow: -12px -12px 22px 0px rgba(235,161,157,1);
-moz-box-shadow: -12px -12px 22px 0px rgba(235,161,157,1);
box-shadow: -12px -12px 22px 0px rgba(235,161,157,1);
}
.horizontal-line-4{
  position: absolute;
  top: 8%;
  left: 76%;
  width: 5%;
  height: 82%;
  background: $lines;
  border: solid 1px $Black;
  
  
  //shadow
webkit-box-shadow: -12px -12px 22px 0px rgba(235,161,157,1);
-moz-box-shadow: -12px -12px 22px 0px rgba(235,161,157,1);
box-shadow: -12px -12px 22px 0px rgba(235,161,157,1);
}

.whipped-cream-0deg{
  position: absolute;
  top: 69%;
  left: 27%;
  width: 45%;
  height: 35%;
  background: $whipped-cream;
  border-radius: 50%;
  //half circle
  -webkit-clip-path: circle(50% at 50% 100%);
clip-path: circle(50% at 50% 100%);
}
.whipped-cream-180deg{
  position: absolute;
  bottom: 70%;
  left: 23.5%;
  width: 45%;
  height: 35%;
  background: $whipped-cream;
  border-radius: 50%;
  //half circle
  -webkit-clip-path: circle(50% at 50% 100%);
clip-path: circle(50% at 50% 100%);
  //go to the top
  -ms-transform: rotate(180deg); /* IE 9 */
  -webkit-transform: rotate(180deg); /* Chrome, Safari, Opera */
  transform: rotate(180deg);
}
.whipped-cream-45deg{
  position: absolute;
  top: 62%;
  left: 0%;
  width: 45%;
  height: 35%;
  background: $whipped-cream;
  border-radius: 50%;
  //half circle
  -webkit-clip-path: circle(50% at 50% 100%);
clip-path: circle(50% at 50% 100%);
  
  
  -ms-transform: rotate(47deg); /* IE 9 */
  -webkit-transform: rotate(47deg); /* Chrome, Safari, Opera */
  transform: rotate(42deg);
}
.whipped-cream--36deg{
  position: absolute;
  top: 58%;
  right: 1%;
  width: 45%;
  height: 35%;
  background: $whipped-cream;
  border-radius: 50%;
  //half circle
  -webkit-clip-path: circle(50% at 50% 100%);
clip-path: circle(50% at 50% 100%);
  
  -ms-transform: rotate(-36deg); /* IE 9 */
  -webkit-transform: rotate(-36deg); /* Chrome, Safari, Opera */
  transform: rotate(-36deg);
}
.whipped-cream-90deg{
  position: absolute;
  top: 33%;
  left: -11%;
  width: 45%;
  height: 35%;
  background: $whipped-cream;
  border-radius: 50%;
  //half circle
  -webkit-clip-path: circle(50% at 50% 100%);
clip-path: circle(50% at 50% 100%);

  -ms-transform: rotate(90deg); /* IE 9 */
  -webkit-transform: rotate(90deg); /* Chrome, Safari, Opera */
  transform: rotate(90deg);
}
.whipped-cream--90deg{
  position: absolute;
  top: 31%;
  right: -9%;
  width: 45%;
  height: 35%;
  background: $whipped-cream;
  border-radius: 50%;
  //half circle
  -webkit-clip-path: circle(50% at 50% 100%);
clip-path: circle(50% at 50% 100%);

  -ms-transform: rotate(-90deg); /* IE 9 */
  -webkit-transform: rotate(-90deg); /* Chrome, Safari, Opera */
  transform: rotate(-93deg);
}
.whipped-cream-138deg{
  position: absolute;
  bottom: 62%;
  left: -3%;
  width: 45%;
  height: 35%;
  background: $whipped-cream;
  border-radius: 50%;
  //half circle
  -webkit-clip-path: circle(50% at 50% 100%);
clip-path: circle(50% at 50% 100%);

  -ms-transform: rotate(138deg); /* IE 9 */
  -webkit-transform: rotate(138deg); /* Chrome, Safari, Opera */
  transform: rotate(138deg);
}
.whipped-cream--145deg{
  position: absolute;
  bottom: 62%;
  right: 3%;
  width: 45%;
  height: 35%;
  background: $whipped-cream;
  border-radius: 50%;
  //half circle
  -webkit-clip-path: circle(50% at 50% 100%);
clip-path: circle(50% at 50% 100%);

  -ms-transform: rotate(-138deg); /* IE 9 */
  -webkit-transform: rotate(-138deg); /* Chrome, Safari, Opera */
  transform: rotate(-145deg);
}

.cherry{
  position: absolute;
  top: 50%;
  left: 41%;
  width: 19%;
  height: 27%;
  background: $cherry;
  border-radius: 0%;
  border-bottom: solid 4px $whipped-cream-border;
 
  -webkit-clip-path: circle(50% at 50% 100%);
clip-path: circle(50% at 50% 100%);
}
.cherry-bullet{
  position: absolute;
  top: 65%;
  left: 55%;
  width: 11%;
  height: 15%;
  background: $cherry-bullet;
  border-radius: 50%;
}





//css animations
//animation of spinMe


@keyframes spinMe{
  0%{ //for 0sec
    transform: rotate(0deg);  
    //original color
    background: $base;
  }
  100%{ //for all sec
    transform: rotate(360deg);
    //change color
    background: #e9b87a;
  }
  
}



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

Console