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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

            
              <div id="contain">
  <div class='wrap' id='wrap1'>
    <div class='ball' id='ball1'></div>
  </div>

  <div class='wrap' id='wrap2'>
    <div class='ball' id='ball2'></div>
  </div>

  <div class='wrap' id='wrap3'>
    <div class='ball' id='ball3'></div>
  </div>

  <div class='wrap' id='wrap4'>
    <div class='ball' id='ball4'></div>
  </div>
 <div class='wrap' id='wrap5'>
    <div class='ball' id='ball5'></div>
  </div>

</div>
            
          
!

CSS

            
              html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}table{border-collapse:collapse;border-spacing:0}

#contain {
  width: 200px;
  height: 50px;
  position: absolute;
  top: calc(50% + 50px);
  left: calc(50% + 50px);
  opacity: 0;
  animation: fadeIn 1s 1;
  animation-fill-mode: forwards;
  -webkit-animation: fadeIn 1s 1;
  -webkit-animation-fill-mode: forwards;
}

.wrap {
  animation: translateX 1000ms infinite ease-in-out alternate;
  -webkit-animation: translateX 1000ms infinite ease-in-out alternate;
  position: absolute;
}

.ball {
  width: 50px;
  height: 50px;
  box-shadow: -6.25px -6.25px 0 rgba(0, 0, 0, 0.1) inset;
  background-color: #397BF9;
  border-radius: 50%;
  animation: translateY 500ms infinite ease-in-out alternate;
  -webkit-animation: translateY 500ms infinite ease-in-out alternate;
}

.wrap:after {
  content: '';
  width: 50px;
  height: 7.5px;
  background: #eee;
  position: absolute;
  bottom: 0;
  top: 70px;
  border-radius: 50%;
  animation: scale 500ms infinite ease-in-out alternate;
  -webkit-animation: scale 500ms infinite ease-in-out alternate;
}

#wrap2,
#ball2,
#wrap2:after {
  animation-delay: -400ms;
  -webkit-animation-delay: -400ms;
}

#wrap3,
#ball3,
#wrap3:after {
  animation-delay: -800ms;
  -webkit-animation-delay: -800ms;
}

#wrap4,
#ball4,
#wrap4:after {
  animation-delay: -1200ms;
  -webkit-animation-delay: -1200ms;
}

#wrap5,
#ball5,
#wrap5:after {
  animation-delay: -1600ms;
  -webkit-animation-delay: -1600ms;
}

#ball2 {
  background-color: #F4B400;
}

#ball3 {
  background-color: #EEEEEE;
}

#ball4 {
  background-color: #00A656;
}

#ball5 {
  background-color: #E3746B;
}

@keyframes translateX {
  100% {
    transform: translateX(-150px);
  }
}
@keyframes translateY {
  100% {
    transform: translateY(-187.5px);
  }
}
@keyframes scale {
  100% {
    transform: scale(0.85);
  }
}
@keyframes fadeIn {
  100% {
    opacity: 1;
  }
}

@-webkit-keyframes translateX {
  100% {
    transform: translateX(-150px);
  }
}
@-webkit-keyframes translateY {
  100% {
    transform: translateY(-187.5px);
  }
}
@-webkit-keyframes scale {
  100% {
    transform: scale(0.85);
  }
}
@-webkit-keyframes fadeIn {
  100% {
    opacity: 1;
  }
}
            
          
!

JS

            
              
            
          
!
999px

Console