Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <svg class="bounce" role="status" version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 100" aria-labelledby="title desc">
  <!-- accessible descriptors   -->
  <title id="title">Loading</title>
  <desc id="desc"> fetching content, please wait.</desc>
  <circle r="20%" cx="15%" cy="50%" color="#000"/>
  <circle r="20%" cx="50%" cy="50%" color="#000"/>
  <circle r="20%" cx="85%" cy="50%" color="#000"/>
</svg>

<svg class="fade-out" role="status" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 100">
  <circle r="20%" cx="15%" cy="50%" color="#000"/>
  <circle r="20%" cx="50%" cy="50%" color="#000"/>
  <circle r="20%" cx="85%" cy="50%" color="#000"/>
</svg>

<svg class="fade-in" role="status" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 100">
  <circle r="20%" cx="15%" cy="50%" color="#000"/>
  <circle r="20%" cx="50%" cy="50%" color="#000"/>
  <circle r="20%" cx="85%" cy="50%" color="#000"/>
</svg>

<svg class="fade-out-half" role="status" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 100">
  <circle r="20%" cx="15%" cy="50%" color="#000"/>
  <circle r="20%" cx="50%" cy="50%" color="#000"/>
  <circle r="20%" cx="85%" cy="50%" color="#000"/>
</svg>

<svg class="fade-in-half" role="status" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 100">
  <circle r="20%" cx="15%" cy="50%" color="#000"/>
  <circle r="20%" cx="50%" cy="50%" color="#000"/>
  <circle r="20%" cx="85%" cy="50%" color="#000"/>
</svg>
              
            
!

CSS

              
                html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-wrap: wrap;
  background: #2c2725;
}

svg {
  pointer-events: none;
  width: 100px;
  display: block;
  margin: 0 auto;
  overflow: visible;
  padding: 15px;
  max-width: 100%;
}

svg circle {
  transform-origin: center;
  fill: #c0ff;
  transition: ease;
  animation-timing-function: ease-in-out !important;
}

/* bouncy  */

svg.bounce circle:nth-child(3) {
  animation: fadeOutIn-bounce 0.9s -0.3s infinite;
}

svg.bounce circle:nth-child(4) {
  animation: fadeOutIn-bounce 0.9s -1.3s infinite;
}

svg.bounce circle:nth-child(5) {
  animation: fadeOutIn-bounce 0.9s -2.3s infinite;
}

/* fade out */

svg.fade-out circle:nth-child(1) {
  animation: fadeIn 0.9s -2.3s infinite reverse;
}

svg.fade-out circle:nth-child(2) {
  animation: fadeIn 0.9s -1.3s infinite reverse;
}

svg.fade-out circle:nth-child(3) {
  animation: fadeIn 0.9s -0.3s infinite reverse;
}

/* fade in */

svg.fade-in circle:nth-child(1) {
  animation: fadeIn 0.9s -2.3s infinite;
}

svg.fade-in circle:nth-child(2) {
  animation: fadeIn 0.9s -1.3s infinite;
}

svg.fade-in circle:nth-child(3) {
  animation: fadeIn 0.9s -0.3s infinite;
}

/* fade out half */

svg.fade-out-half circle:nth-child(1) {
  animation: fadeInHalf 0.9s -2.3s infinite reverse;
}

svg.fade-out-half circle:nth-child(2) {
  animation: fadeInHalf 0.9s -1.3s infinite reverse;
}

svg.fade-out-half circle:nth-child(3) {
  animation: fadeInHalf 0.9s -0.3s infinite reverse;
}

/* fade in half */

svg.fade-in-half circle:nth-child(1) {
  animation: fadeInHalf 0.9s -2.3s infinite;
}

svg.fade-in-half circle:nth-child(2) {
  animation: fadeInHalf 0.9s -1.3s infinite;
}

svg.fade-in-half circle:nth-child(3) {
  animation: fadeInHalf 0.9s -0.3s infinite;
}

/* keyframes */

@keyframes fadeOutIn-bounce {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
    transform: scale(0.9) translateY(50%);
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInHalf {
  from {
    opacity: 0.5;
  }
  to: {
    opacity: 1;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console