Pen Settings

HTML

CSS

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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

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.

HTML

              
                <section>
  <div class="loader-icon"></div>
  <div class="loader-text">DESTINY</div>
  <p>Be Brave...</p>
</section>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Roboto);

*{box-sizing: border-box;}

body {
  background: #2e2e2e url(https://www.bungie.net/img/theme/destiny/headers/forum_headers_destiny_v2.jpg?cv=3983621212&av=446517217) no-repeat center;
  background-size: cover;
  color: #fff;
  font-family: 'Roboto';
  font-size: 24px;
  text-align: center;
  line-height: 1.4;
  overflow: hidden;
  transition: background 2s;
  animation: 20s background infinite linear;
}

body.alt {
  background: #2e2e2e url(https://www.bungie.net/img/theme/destiny/headers/forum_headers_clans_v2.jpg?cv=3983621212&av=446517217) no-repeat center;
  background-size: cover;
}

section {
  padding: 2em 0;
}

.loader-text {
  margin-top: 50px;
  font-size: 80px;
  letter-spacing: 30px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 1);
  animation: 20s expand infinite linear;
}

p {
  letter-spacing: 20px;
  padding: 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 1);
}

.loader-icon,
.loader-icon:before,
.loader-icon:after {
  width: 150px;
  height: 150px;
  border-radius: 50%;
}

.loader-icon {
  margin: 0 auto;
  position: relative;
  background: transparent;
}

.loader-icon:before,
.loader-icon:after {
  position: absolute;
  left: 0;
  top: 0;
  content: "";
  border: 15px solid #efefef;
  opacity: 0.5;
  animation: 3s rotate infinite linear;
}

.loader-icon:before {
  border-left-color: transparent;
}

.loader-icon:after {
  top: 16.5%;
  left: 16.5%;
  width: 100px;
  height: 100px;
  border-right-color: transparent;
  opacity: 0.2;
  animation-direction: reverse;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes expand {
  50% {
    transform: scale(1.2);
  }
}

@keyframes background {
  45% {
    background: #2e2e2e url(https://www.bungie.net/img/theme/destiny/headers/forum_headers_destiny_v2.jpg?cv=3983621212&av=446517217) no-repeat center;
  background-size: cover;
  }
  50% {
    background: #2e2e2e url(https://www.bungie.net/img/theme/destiny/headers/forum_headers_clans_v2.jpg?cv=3983621212&av=446517217) no-repeat center;
  background-size: cover;
  }
  95% {
    background: #2e2e2e url(https://www.bungie.net/img/theme/destiny/headers/forum_headers_clans_v2.jpg?cv=3983621212&av=446517217) no-repeat center;
  background-size: cover;
  }
}
              
            
!

JS

              
                /* removed jQuery in place of keyframes transitions

preloadImages = function() {
  for (var i = 0; i < arguments.length; i++) {
    $("<img />").attr("src", arguments[i]);
  }
};

preloadImages("https://www.bungie.net/img/theme/destiny/headers/forum_headers_clans_v2.jpg?cv=3983621212&av=446517217");

// added the code above to stop the 2nd image from popping when it loads

setInterval(function () {
    $('body').toggleClass('alt');
}, 10000); */
              
            
!
999px

Console