Pen Settings



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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


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


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.


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.


                <div class="loader">
  <div class="ancl" data-js="loader--alpha"></div>


                @import "compass/css3";

.loader {
  margin: auto;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  height: 1.2em;
  width: 17em;
  border: 0.1em solid #bbb;
  @include box-shadow(0 0 0.5em 0.1em rgba(black,0.2));
  @include border-radius(0.5em);
.ancl {
  @include animation(cc 5s linear infinite);
  width: 17em;
  height: 1.2em;
  @include background-size(2em 2em);
  @include background-image(linear-gradient(
    rgba(black, 0.1)  25%, 
    transparent       25%, 
    transparent       50%, 
    rgba(black, 0.1)  50%, 
    rgba(black, 0.1)  75%, 
    transparent       75%, 
  position: absolute;
  text-align: right;
  &:after {
    content: attr(data-value) '%';
    margin: -1.2em -1.0em;
    position: absolute;
    letter-spacing: .125em;
    font-weight: bold;
    color: #aa9;
@include keyframes(cc) {
  from { background-position: 0; width: 5%; }
  to { background-position: -5em; width: 100%; }


 *If it doesn't count exactly then click on Run button.
 *Special thanks to
 *and Special thanks to @TimPietrusky for count JS...
 *2014 by Kaushalya Mandaliya
(function() {
  var requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame ||
                              window.webkitRequestAnimationFrame || window.msRequestAnimationFrame;
  window.requestAnimationFrame = requestAnimationFrame;

var loader = document.querySelector('[data-js="loader--alpha"]'),
    start = null,
    time = 5000,
    max_value = 100

 * Creates a requeastAnimationFrame function to increase
 * the value of a data-attribute to 100%;
function step(timestamp) {
  // Save the progress
  var progress;
  // Get the start time
  if (start === null) {
    start = timestamp;
  // Calculate the progress
  progress = timestamp - start;
  // If not progressed
  if (progress < time) {
    loader.dataset.value = (progress / time * max_value).toPrecision(2);
  // Finished
  } else {
    loader.dataset.value = 100;
    start = null;

// Start animation