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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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="wrapper">
  <div class="cup">
    <span class="handle"></span>
    <span class="smoke"></span>
  </div>
</div>


<!-- By Coding Market -->
<div class="youtube">
  <a href="https://www.youtube.com/channel/UCtVM2RthR4aC6o7dzySmExA" target="_blank">by coding market</a>
</div>
              
            
!

CSS

              
                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;
  }
}







/* youtube link */
.youtube{
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 160px;
  text-align: center;
  padding: 15px 10px;
  background: #bb0000;
  border-radius: 5px;
}

.youtube a{
  text-decoration: none;
  color: #fff;
  text-transform: capitalize;
  letter-spacing: 1px;
}

              
            
!

JS

              
                
              
            
!
999px

Console