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="results-loading-container">
  <div class="bar"></div>
  <div class="bar"></div>
  <div class="bar"></div>
  <div class="bar"></div>
  <div class="bar"></div>
</div>
<span>LOADING</span>
              
            
!

CSS

              
                // Change duration and colors
$duration    : 1s
$start-delay : $duration * 0.10
$bars-color  : #e74c3c
$bg-color    : #1C2E30
$bars-height : 3px
$bars-width  : 35px

body
  background: $bg-color
  
span
  display: block
  font-weight: 300
  letter-spacing: 0.25em
  font-size: 16px
  font-family: sans-serif
  padding-top: 20px
  color: white
  opacity: 0.30
  // animation: softblink 1.5s infinite ease-in-out
    
.results-loading-container
  width: 100%
  padding: 30px 0px
  margin: 0px auto
  list-style: none
  text-align: center
  // Vertically centering the loader
  position: absolute
  top: 50%
  transform: translateY(-50%)
  // - - - - - 

  .bar 
    width: $bars-width
    height: $bars-height
    display: inline-block
    margin: 5px auto
    border-radius: 2px
    background: $bars-color
    -webkit-animation: leftmove $duration infinite ease-in-out
    -moz-animation: leftmove $duration infinite ease-in-out
    animation: leftmove $duration infinite ease-in-out
    animation: rightmove $duration infinite ease-in-out
    
    
  .bar:nth-child(2) 
    -webkit-animation-delay: $start-delay
    -moz-animation-delay: $start-delay
    animation-delay: $start-delay
  .bar:nth-child(3)
    -webkit-animation-delay: $start-delay * 2
    -moz-animation-delay: $start-delay * 2
    animation-delay: $start-delay * 2
  .bar:nth-child(4) 
    -webkit-animation-delay: $start-delay * 3
    -moz-animation-delay: $start-delay * 3
    animation-delay: $start-delay * 3
  .bar:nth-child(5) 
    -webkit-animation-delay: $start-delay * 4
    -moz-animation-delay: $start-delay * 4
    animation-delay: $start-delay * 4


@keyframes leftmove
  0% 
    -webkit-transform: translate(30px)
    -moz-transform: translate(30px)
    transform: translate(30px)
    opacity: 0
  25%
    -webkit-transform: translate(0px)
    -moz-transform: translate(0px)
    transform: translate(0px)
    background: $bars-color
    opacity: 1
  100%
    -webkit-transform: translate(0px)
    -moz-transform: translate(0px)
    transform: translate(0px)
    opacity: 0
  
@keyframes softblink
  0% 
    -webkit-transform: translate(-5px)
    -moz-transform: translate(-5px)
    transform: translate(-5px)
  50%
    -webkit-transform: translate(5px)
    -moz-transform: translate(5px)
    transform: translate(5px)
  100%
    -webkit-transform: translate(-5px)
    -moz-transform: translate(-5px)
    transform: translate(-5px)
  
@keyframes rightmove
  0% 
    -webkit-transform: translate(-30px)
    -moz-transform: translate(-30px)
    transform: translate(-30px)
    opacity: 0
  25%
    -webkit-transform: translate(0px)
    -moz-transform: translate(0px)
    transform: translate(0px)
    background: $bars-color
    opacity: 1
  100%
    -webkit-transform: translate(0px)
    -moz-transform: translate(0px)
    transform: translate(0px)
    opacity: 0

              
            
!

JS

              
                
              
            
!
999px

Console