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.

            
              .container
  .cloud.uno
  .mountain.uno
    .face
  .cloud.dos
  .mountain.dos
    .face
  .mountain.tres
    .face
  .cloud.tres
  .cloud.cuatro
  .mountain.cuatro
    .face
  .mountain.cinco
    .face
            
          
!
            
              @bg: #181743;
@grad1: linear-gradient(to top, #FD02FF 0%, #48BDFF 100%);
@grad2: linear-gradient(to top, #FF0269 0%, #FFDE00 100%);
@grad3: linear-gradient(to top, #56018A 0%, #306FF3 100%);
@grad4: linear-gradient(to top, #4540D9 50%, #580088 100%);
@grad5: linear-gradient(to top, #6E0D75 50%, @bg 100%);
@white: #FFF;

body {
  background: @bg;
}

.container {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 0);
  width: 320px;
  height: 350px;
}

.mountain {
  position: absolute;
  bottom: 0;
  width: 100px;
  border-top-left-radius: 100px;
  border-top-right-radius: 100px;
  box-shadow: 0 0 0 10px rgba(24,23,67,.1);
  .face {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 25px;
    height: 12px;
    background: @bg;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    &:before, &:after {
      display: block;
      content: '';
      position: absolute;
      top: -14px;
      width: 12px;
      height: 12px;
      background: @bg;
      border-radius: 100%;
    }
    &:before {
      left: -10px;
    }
    &:after {
      right: -10px;
    }
  }
  &:before {
    display: block;
    content: '';
    position: absolute;
    top: 15px;
    left: 25px;
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,.3);
    border-radius: 100%;
  }
  &.uno {
    right: 10px;
    height: 185px;
    background: @grad1;
    z-index: 5;
    animation: 5s bounce infinite;
  }
  &.dos {
    right: 98px;
    height: 155px;
    background: @grad2;
    z-index: 3;
    animation: 15s bounce infinite;
  }
  &.tres {
    right: 170px;
    height: 220px;
    background: @grad3;
    z-index: 2;
    animation: 10s bounce infinite;
  }
  &.cuatro {
    right: 140px;
    height: 300px;
    background: @grad4;
    z-index: 1;
    animation: 20s bounce infinite;
  }
  &.cinco {
    right: 65px;
    height: 270px;
    background: @grad5;
    z-index: 0;
    animation: 8s bounce infinite;
  }
}

.cloud {
  position: absolute;
  width: 50px;
  height: 35px;
  background: @white;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  &:before, &:after {
    display: block;
    content: '';
    position: relative;
    background: @white;
    box-shadow: 0 5px 0 2px rgba(24,23,67,.1);
  }
  &:before {
    bottom: -20px;
    left: -20px;
    width: 50px;
    height: 15px;
    background: @white;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
  }
  &:after {
    bottom: -10px;
    right: -15px;
    width: 50px;
    height: 10px;
    background: @white;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
  }
  &.uno {
    bottom: 55px;
    right: -25px;
    z-index: 6;
  }
  &.dos {
    bottom: 0;
    right: 90px;
    z-index: 4;
  }
  &.tres {
    bottom: 100px;
    left: 15px;
  }
  &.cuatro {
    bottom: 220px;
    right: 98px;
    z-index: 6;
  }
}

@keyframes bounce {
  0% {
    bottom: 0;
  }
  50% {
    bottom: -10px;
  }
  100% {
    bottom: 0;    
  }
}
            
          
!
999px
Loading ..................

Console