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

              
                <!doctype html>

<html lang="en">
<head>
  <meta charset="utf-8">

  <title>Loading</title>
  <meta name="description" content="The HTML5 Herald">
  <meta name="author" content="SitePoint">

  <link rel="stylesheet" href="styles.css">

</head>

<body>

    <svg id="dots" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 204.49 70.42">
        <title>Untitled-2</title>
        <g id="dot3">
            <circle class="cls-1" cx="20.21" cy="20.21" r="20.21"/>
        </g>
        <g id="dot2">
            <circle class="cls-1" cx="102.25" cy="20.21" r="20.21"/>
        </g>
        <g id="dot1">
            <circle class="cls-1" cx="184.28" cy="20.21" r="20.21"/>
        </g>
    </svg>
  <!-- <script src="js/scripts.js"></script> -->
</body>
</html>
              
            
!

CSS

              
                .cls-1{fill:#b2b2b2;}

#dots {
    overflow: visible;
    margin-top: 50px;
    width: 50%;
/*   positioning in center of page */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

/* Calling animations */

#dots #dot3{
    animation: load 2s ease infinite;
    opacity: 0.8;

}

#dots #dot2{
    animation: load2 2s ease infinite;
    opacity: 0.8;

}

#dots #dot1{
    animation: load3 2s ease infinite;
    opacity: 0.8;

}

/* Animation instructions */

@keyframes load {

    0% {transform: scale(1);opacity: 0.8;transform-origin: center left;}
    25% {transform: scale(1.1);opacity: 1;transform-origin: center left;}
    50% {transform: scale(1);opacity: 0.8;transform-origin: center left;}
    100% {transform: scale(1);opacity: 0.8;transform-origin: center left;}

}

@keyframes load2 {

    0% {transform: scale(1);opacity: 0.8;transform-origin: center center;}
    25% {transform: scale(1);opacity: 0.8;transform-origin: center center;}
    50% {transform: scale(1.1);opacity: 1;transform-origin: center center;}
    75% {transform: scale(1);opacity: 0.8;transform-origin: center center;}
    100% {transform: scale(1);opacity: 0.8;transform-origin: center center;}

}

@keyframes load3 {

    0% {transform: scale(1);opacity: 0.8;transform-origin: center right;}
    50% {transform: scale(1);opacity: 0.8;transform-origin: center right;}
    75% {transform: scale(1.1);opacity: 1;transform-origin: center right;}
    100% {transform: scale(1);opacity: 0.8;transform-origin: center right;}

}

              
            
!

JS

              
                
              
            
!
999px

Console