Pen Settings



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


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.


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.


                // Author: Ali Soueidan
// Author URI: https//:

h1 <span> ๐Ÿ™Œ๐Ÿฝ I present:</span>  ๐Ÿฅ ... The depressing loading bar ๐Ÿ‘๐Ÿฝ

p  <span>0</span> / 100

a( href='' target="_blank" class='reference' ) ๐Ÿ”— Ali Soueidan


                // Author: Ali Soueidan
// Author URI: https//:

  display: flex 
  flex-direction: column
  justify-content: center 
  align-items: center
  margin: 0
  height: 100vh
  overflow: hidden

  width: 50vw
  height: 5vw
  min-height: 24px
  background-color: #eaeaea
  border: 1vw solid #fff
  border-radius: 5vw
  box-shadow: 0 0 2vw rgba(0,127,255,.25)
  overflow: hidden
    transition: .8s ease
    transform: rotate(-180deg)
      transition: .4s ease
      width: 0%!important
  width: 0%
  height: 100%
  background: linear-gradient(#25C42F, #25c491)
  transition: .5s ease
  margin-bottom: 6vw
  font-family: arial
  font-size: 2vw
  font-weight: 100
  text-align: center
    display: block
    margin-bottom: 1vw
  margin-top: 2vw
  font-family: arial
  font-size: 2vw

    position: absolute
    right: 24px 
    bottom: 24px
    font-family: arial
    text-decoration: none


                // Author: Ali Soueidan
// Author URI: https//:

let bar = document.querySelector("#loading-bar");
let progress = document.querySelector("#progress");
let reporter = document.querySelector("p > span");

let processingTime = 800;
let i = 0;
setInterval( function(){ 
  if ( i < 99 ) {
    i = i + Math.floor(Math.random() * (25 - 1)); = i + "%";
    processingTime = Math.floor(Math.random() * (3000 - 800));
    if ( i >= 99 ) {
      i = 99;
      reporter.textContent = i;
      processingTime = 1000;
    reporter.textContent = i;
  } else {
    i = 0; = i + "%";
    reporter.textContent = i;
    processingTime = Math.floor(Math.random() * (3000 - 800));
}, processingTime);