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

              
                <div class="loader">ttt</div>


              
            
!

CSS

              
                // Its tough to get it smooth and fluid, working on it

// Options
$black: #1b1e23;
$blob: coral; // rebeccapurple, beige
$size: 1.5; // Scale

// Pen specific

html,
body {
  height: 100%;
}
body {
  background: $black;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: sans-serif;
}

// Start

.loader {
  height: 150px;
  width: 150px;
  background: $blob;
  transform: scale($size);
  animation: wobble 8s linear alternate infinite,
    rotate 40s linear forwards infinite;
}

@keyframes wobble {
  0% {
    border-radius: 71px 79px 81px 76px / 84px 67px 89px 72px;
  }
  25% {
    border-radius: 66px 74px 71px 69px / 78px 70px 65px 68px;
  }
  37% {
    border-radius: 76px 79px 68px 74px / 74px 73px 59px 67px;
  }
  50% {
    border-radius: 67px 71px 65px 75px / 68px 78px 64px 65px;
  }
  62% {
    border-radius: 65px 67px 69px 71px / 72px 75px 68px 61px;
  }
  75% {
    border-radius: 74px 71px 73px 67px / 76px 71px 74px 65px;
  }
  87% {
    border-radius: 69px 73px 77px 71px / 80px 64px 69px 68px;
  }
  100% {
    border-radius: 71px 79px 81px 76px / 84px 67px 89px 72px;
  }
}

@keyframes rotate {
  0% {
    transform: rotateZ(0deg) scale($size);
  }
  100% {
    transform: rotateZ(360deg) scale($size);
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console