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.background
  div.card
    div.browser
      div.ball-1
      div.ball-2
      div.ball-3
    div.header
      div.wrap
         div.elem01
         div.elem02
         div.elem03
         div.elem04
         div.elem05
    div.content
      div.wrap
         div.cont01
         div.cont02
         div.cont03
              
            
!

CSS

              
                .background {
  position: relative;
  width: 600px;
  height: 325px;
}
.card {
  position: absolute;
  left: 150px;
  width: 325px;
  height: 300px;
  border-radius: 10px;
}
.browser {
  position: absolute;
  top: 10px;
  width: 325px;
  height: 20px;
  background: #444;
  border-radius: 10px 10px 0px 0px;
  animation: before-start 1.5s alternate ease-in-out;
}
.ball-1 {
  position: absolute;
  top: 5px;
  left: 40px;
  width: 5px;
  height: 5px;
  background: #47cf73;
  border-radius: 10px;
}
.ball-2 {
  position: absolute;
  top: 5px;
  left: 55px;
  width: 5px;
  height: 5px;
  background: #FCD000;
  border-radius: 10px;
}
.ball-3 {
  position: absolute;
  top: 5px;
  left: 70px;
  width: 5px;
  height: 5px;
  background: #FF3C41;
  border-radius: 10px;
}
.header {
  position: absolute;
  top: 25px;
  width: 325px;
  height: 140px;
  background: #eee;
  animation: before-start 1s alternate ease-in-out;
}
.content {
  position: absolute;
  top: 165px;
  width: 325px;
  height: 135px;
  background: #fff;
  border-radius: 0px 0px 10px 10px;
  animation: before-start .8s alternate ease-in-out;
}
.wrap {
  position: absolute;
  top: 85px;
  margin: auto 50px;
}
.cont01 {
  position: absolute;
  width: 55px;
  height: 5px;
  background: #DDDDE0;
}
.cont01::after {
  position: absolute;
  top: -55px;
  left: 7px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #DDDDE0;
  content:"";
}
.cont02 {
  position: absolute;
  left: 86px;
  width: 55px;
  height: 5px;
  background: #DDDDE0;
}
.cont02::after {
  position: absolute;
  top: -55px;
  left: 7px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #DDDDE0;
  content:"";
}
.cont03 {
  position: absolute;
  left: 170px;
  width: 55px;
  height: 5px;
  background: #DDDDE0;
}
.cont03::after {
  position: absolute;
  top: -55px;
  left: 7px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #DDDDE0;
  content:"";
}
.elem01 {
  position: absolute;
  top: -47px;
  left: 7px;
  width: 130px;
  height: 10px;
  background: #DDDDE0;
}
.elem02 {
  position: absolute;
  top: -30px;
  left: 7px;
  width: 100px;
  height: 7px;
  background: #DDDDE0;
}
.elem03 {
  position: absolute;
  top: -17px;
  left: 7px;
  width: 100px;
  height: 7px;
  background: #DDDDE0;
}
.elem04 {
  position: absolute;
  top: -5px;
  left: 7px;
  width: 100px;
  height: 7px;
  background: #DDDDE0;
}
.elem05 {
  position: absolute;
  top: -50px;
  left: 155px;
  width: 70px;
  height: 70px;
  background: #DDDDE0;
  border-radius: 50%;
}

@keyframes before-start {
	0% {transform: translateY(-50px)}
	100% {transform: translateY(0px)}
}
              
            
!

JS

              
                
              
            
!
999px

Console