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="wrapper">
  <div class="cup">
    <span class="handle"></span>
    <span class="smoke"></span>
  </div>
</div>
            
          
!
            
              body {
  background: #00bfb6;
}

.wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cup {
  width: 150px;
  height: 150px;
  background: #fdd47a;
  border-radius: 5px;
  box-shadow: 1px 3px 4px rgba(0, 0, 0, 0.3),
    inset -2px -2px 3px 1px rgba(0, 0, 0, .2);
  position: relative;
}

.handle {
  position: absolute;
  width: 20px;
  height: 50px;
  right: -35px;
  top: 55px;
  border: 15px solid #fdd47a;
  border-left: 0px;
  border-top-right-radius: 7px;
  border-bottom-right-radius: 7px;
  box-shadow: 1px 3px 4px rgba(0, 0, 0, 0.3),
    inset -2px -2px 3px 1px rgba(0, 0, 0, .2);
  z-index: -1;
}

.smoke:before {
  position: absolute;
  content: "";
  background: transparent;
  width: 145px;
  height: 30px;
  top: -35px;
  box-shadow: 0px 25px 20px -9px #e5e5e5;
  opacity: 0;
  animation: smoke 4s linear infinite;
  transition: 0.5s linear;
}

.smoke:after {
  position: absolute;
  content: "";
  background: transparent;
  width: 145px;
  height: 30px;
  top: -35px;
  box-shadow: 0px 25px 20px -9px #e5e5e5;
  opacity: 0;
  animation: smoke1 4s linear 2s infinite;
  transition: 0.5s linear;
}

@keyframes smoke {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-35px);
    opacity: 1;
  }
  70% {
    transform: translateY(-55px);
    opacity: 1;
    width: 75%;
    margin-left: 20px;
  }

  100% {
    transform: translateY(-115px);
    opacity: 0.2;
    width: 20%;
    margin-left: 40px;
  }
}

@keyframes smoke1 {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-45px);
    opacity: 1;
  }
  70% {
    transform: translateY(-65px);
    opacity: 1;
    width: 50%;
    margin-left: 30px;
  }

  100% {
    transform: translateY(-145px);
    opacity: 0.2;
    width: 0%;
    margin-left: 60px;
  }
}

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

Console