Pen Settings

HTML

CSS

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

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

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.

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="grid-container">

        <!--TWISTER ICE LOLLY-->

        <div class="one icon">

            <div class="twister"></div>
            <div class="twister-overlay"></div>
            <div class="stick"></div>

        </div>


        <!--FAB ICE LOLLY-->
        <div class="two  icon">

            <div class="fab"></div>
            <div class="stick"></div>

        </div>



          <!--BUBBLEGUM ICE LOLLY-->
        <div class="three icon">

            <div class="bubblegum"></div>
            <div class="bubblegum-overlay"></div>
            <div class="stick"></div>

        </div>


          <!--CHOCOLATE ICE LOLLY-->
        <div class="four icon">

            <div class="chocolate"></div>
            <div class="stick"></div>
            
        </div>



          <!--PINK-WHITE ICE LOLLY-->
        <div class="five icon">

            <div class="pink-white"></div>
            <div class="stick"></div>

        </div>


         <!--FRUIT PASTEL ICE LOLLY-->
        <div class="six icon">

            <div class="fruit-top"></div>
            <div class="fruit-bottom"></div>
            <div class="stick"></div>

        </div>


          <!--MAGNUM ICE LOLLY-->
        <div class="seven icon">

            <div class="magnum"></div>
            <div class="magnum-bottom"></div>
            <div class="stick"></div>

        </div>


          <!--ORANGE ICE LOLLY-->
        <div class="eight icon">

            <div class="orange"></div>
            <div class="stick"></div>

        </div>


      </div>
    

              
            
!

CSS

              
                
/* GRID SET UP */

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px 20px;
    grid-template-areas: "one two three seven" "four five six eight";
    height: 1200px;
    width: 1600px;
  }

  .icon {background-color: rgb(255, 214, 233); position: relative; overflow: hidden;}

  .one { grid-area: one; }
  
  .two { grid-area: two; }
  
  .three { grid-area: three; }
  
  .four { grid-area: four; }
  
  .five { grid-area: five; }
  
  .six { grid-area: six; }
  
  .seven { grid-area: seven; }
  
  .eight { grid-area: eight; }



  /* LOLLY STICK */
  .stick {
    width: 13%;
    height: 30%;
    background: rgb(244,229,187);
background: linear-gradient(90deg, rgba(244,229,187,1) 49%, rgba(238,217,183,1) 50%);
    position: absolute;
    left: 43%;
    top: 80%;
}

  /* FAB ICE LOLLY */
.fab {
    
    width: 50%;
    height: 25%;
    position: absolute;
    left: 25%;
    top: 30%;
    background: rgb(250,207,250);
    background: linear-gradient(90deg, rgba(250,207,250,1) 49%, rgba(227,165,227,1) 50%);
    border-right: 8px solid rgb(190, 136, 190);
}

.fab:before {
    content: "";
    
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0%;
    top: -80%;
    border-radius: 50% 50% 50% 50% / 22% 22% 0% 1%;
    background: rgb(129,88,88);
background: linear-gradient(90deg, rgba(129,88,88,1) 49%, rgba(99,64,60,1) 50%);
border-right: 8px solid rgb(77, 51, 48);

}

.fab:after {
    content: "";
  
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0%;
    top: 100%;
    border-radius: 50% 50% 50% 50% / 0% 0% 7% 7%;
    background: rgb(223,162,197);
background: linear-gradient(90deg, rgba(223,162,197,1) 49%, rgba(207,135,174,1) 50%);
border-bottom: 15px solid rgb(179, 115, 149);
border-right: 8px solid rgb(179, 115, 149);
}




 /* TWISTER ICE LOLLY */
.twister {
    
    width: 40%;
    height: 70%;
    position: absolute;
    left: 30%;
    top: 10%;
    border-radius: 10%;
    border-right: 8px solid #6abb5c;
    border-bottom: 5px solid #6abb5c;
    background-image: linear-gradient(19deg, #82e371 21.43%, #77d968 21.43%, #77d968 26.19%, #ecf099 26.19%, #ecf099 45.24%, #77d968 45.24%, #77d968 50%, #82e371 50%, #82e371 71.43%, #77d968 71.43%, #77d968 76.19%, #ecf099 76.19%, #ecf099 95.24%, #77d968 95.24%, #77d968 100%);
    background-size: 322.51px 111.05px;
}

.twister-overlay {
    
    width: 20%;
    height: 70%;
    position: absolute;
    left: 30%;
    top: 10%;
    background-color: rgba(255, 255, 255,0.2);
}




 /* BUBBLEGUM ICE LOLLY */

.bubblegum {
    
    width: 55%;
    height: 70%;
    position: absolute;
    left: 20%;
    top: 10%;
    border-radius: 50% 50% 50% 50% / 23% 22% 7% 7%;
    border-right: 8px solid rgb(99, 196, 191);
    border-bottom: 5px solid rgb(99, 196, 191);
    background: rgb(130,255,249);
background: linear-gradient(90deg, rgba(130,255,249,1) 49%, rgba(117,226,221,1) 50%);
}

.bubblegum-overlay {
    
    width: 15%;
    height: 55%;
    position: absolute;
    left: 20%;
    top: 20%;
    border-radius: 50% 50% 50% 50% / 23% 22% 7% 7%;
    border-right: 10px solid rgb(194, 245, 242);
   
}

.bubblegum-overlay:before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 100%;
    top: 0%;
    border-radius: 50% 50% 50% 50% / 23% 22% 7% 7%;
    border-right: 10px solid rgb(194, 245, 242);
    
}

.bubblegum-overlay:after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 200%;
    top: 0%;
    border-radius: 50% 50% 50% 50% / 23% 22% 7% 7%;
    border-right: 10px solid rgb(194, 245, 242);
    
}




 /* MAGNUM ICE LOLLY */
.magnum {
    
    width: 65%;
    height: 70%;
    position: absolute;
    left: 18%;
    top: 10%;
    border-radius: 50% ;
    border-right: 8px solid rgb(48, 34, 27);
    border-bottom: 5px solid rgb(48, 34, 27);
    background: rgb(94,64,52);
    background: linear-gradient(90deg, rgba(94,64,52,1) 49%, rgba(74,52,41,1) 50%);
    z-index: +2;
}

.magnum-bottom {
    
    width: 12%;
    height: 5%;
    position: absolute;
    left: 43%;
    top: 78%;
    
    border-right: 8px solid rgb(48, 34, 27);
    border-bottom: 5px solid rgb(48, 34, 27);
    background: rgb(94,64,52);
    background: linear-gradient(90deg, rgba(94,64,52,1) 49%, rgba(74,52,41,1) 50%);
    z-index: +1;
}




 /* ORANGE ICE LOLLY */

.orange {
    
    width: 25%;
    height: 70%;
    position: absolute;
    left: 37%;
    top: 9.9%;
    border-radius: 50% 50% 50% 50% / 23% 22% 7% 7%;
    border-right: 8px solid rgb(211, 169, 78);
    border-bottom: 5px solid rgb(211, 169, 78);
    background: rgb(255,209,90);
background: linear-gradient(90deg, rgba(255,209,90,1) 49%, rgba(240,194,92,1) 50%);
}




 /* PINK-WHITE ICE LOLLY */
    .pink-white {
    
        width: 50%;
        height: 25%;
        position: absolute;
        left: 25%;
        top: 55%;
        background: rgb(255,255,255);
        background: linear-gradient(90deg, rgba(255,255,255,1) 49%, rgba(231,231,231,1) 50%);
        border-right: 8px solid rgb(214, 212, 212);
        border-bottom: 8px solid rgb(214, 212, 212);
    }
    
    .pink-white:before {
        content: "";
        
        width: 100%;
        height: 170%;
        position: absolute;
        left: 0%;
        top: -170%;
        border-radius: 50% 50% 50% 50% / 22% 22% 0% 1%;
        background: rgb(255,90,121);
background: linear-gradient(90deg, rgba(255,90,121,1) 49%, rgba(224,93,125,1) 50%);
    border-right: 8px solid rgb(190, 79, 107);
    
    }
    

 /* FRUIT PASTEL ICE LOLLY */

    .fruit-top {
       
        width: 40%;
        height: 15%;
        position: absolute;
        left: 30%;
        top: 10%;
        background: rgb(170,130,181);
        background: linear-gradient(90deg, rgba(170,130,181,1) 49%, rgba(159,116,179,1) 50%);
        border-right: 8px solid rgb(214, 212, 212);
         
    }

    .fruit-top:before {
        content: "";
        width: 100%;
        height: 100%;
        position: absolute;
        left: 0%;
        top: 100%;
        background: rgb(255,195,145);
        background: linear-gradient(90deg, rgba(255,195,145,1) 49%, rgba(255,183,105,1) 50%);
        
        border-right: 8px solid rgb(214, 212, 212);
         
    }

    .fruit-top:after {
        content: "";
        width: 100%;
        height: 100%;
        position: absolute;
        left: 0%;
        top: 200%;
        background: rgb(200,224,177);
        background: linear-gradient(90deg, rgba(200,224,177,1) 49%, rgba(193,217,181,1) 50%);
        border-right: 8px solid rgb(214, 212, 212);
         
    }


    .fruit-bottom {
       z-index: +1;
        width: 40%;
        height: 15%;
        position: absolute;
        left: 30%;
        top: 55%;
        background: rgb(218,152,172);
        background: linear-gradient(90deg, rgba(218,152,172,1) 49%, rgba(207,148,172,1) 50%);
        border-right: 8px solid rgb(214, 212, 212);
         
    }

    .fruit-bottom:before {
        content: "";
        width: 100%;
        height: 100%;
        position: absolute;
        left: 0%;
        top: 100%;
        background: rgb(252,255,177);
background: linear-gradient(90deg, rgba(252,255,177,1) 49%, rgba(247,234,159,1) 50%);
        border-right: 8px solid rgb(214, 212, 212);
         
    }


 /* CHOCOLATE ICE LOLLY */
    .chocolate {
    
        width: 25%;
        height: 70%;
        position: absolute;
        left: 37%;
        top: 9.9%;
        border-radius: 10%;
        border-right: 8px solid rgb(100, 73, 73);
        border-bottom: 5px solid rgb(100, 73, 73);
        background: rgb(142,107,107);
        background: linear-gradient(90deg, rgba(142,107,107,1) 49%, rgba(124,89,89,1) 50%);
    }
              
            
!

JS

              
                
              
            
!
999px

Console