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.

            
              div(class="container")
  div.icecream
    div.flavor
      div.flavours
    div.stick
            
          
!
            
              body,
html { height: 100%; }

.container {
  height: 100%;
  
  display: flex;
  align-items: center;
  justify-content: center;

  background: #33485F;
  
}

.icecream > .flavor {
  position: relative;

  width: 190px;
  height: 260px;
  
  border-radius: 80px 80px 10px 10px;
  overflow: hidden;
  
  &:after {
    content: '';
    
    position: absolute;
    left: 21px;
    bottom: 20px;
    
    width: 20px;
    height: 170px;
    
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.5);
    
  }
  
}

.icecream > .flavor > .flavours {
  position: relative;
  top: 0%;
  left: -20%;
  width: 140%;
  height: 120%;
  
  background-image: linear-gradient(0deg,  #f63a99 25%,#30dcf6 25%,#30dcf6 25%,#30dcf6 50%,#f2d200 50%,#f2d200 50%,#f2d200 75%,#70ca5c 75%);
	background-position: 0px 0px;
	background-repeat: repeat-y;

  animation: flavours 5s linear infinite;
  
  transform: rotate(155deg);
  
}

.icecream > .stick {
  width: 57px;
  height: 86px;
  
  background: #E09C5F;
  border-radius: 0 0 25px 25px;
  
  display: block;
  margin: 0 auto;
  
  &:after {
    display: block;
    content: '';

    width: 100%;
    height: 24px;
    
    background: #8D613B;
    
  }
  
}

@keyframes flavours {
  to {
    background-position: 0 -100vh;
  }
}
            
          
!
            
              //https://dribbble.com/shots/2245452-Loading-Icecream
            
          
!
999px
Loading ..................

Console