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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <div class="radial radial-1"></div>
<div class="radial radial-2"></div>
<div class="radial radial-3"></div>
<div class="radial radial-4"></div>
<div class="radial radial-5"></div>
<div class="vignette"></div>
<h1>Thats all Folks!</h1>

<footer>
  <div class="attr-link">
    Original CodePen by
    <a target="_blank" href="https://codepen.io/StephenKoller/pen/LNxdMw">
  Stephen Koller
  </a>
  </div>
</footer>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Sacramento);
@import url(https://fonts.googleapis.com/css?family=Pacifico);
body {
  background-color: #011327;
  overflow: hidden;
}

h1 {
  font-family: 'Pacifico';
  font-weight: 100;
  font-size: 10vw;
  color: #fff;
  z-index: 9999;
  position: absolute;
  text-align: center;
  display: table-cell;
  width: 99%;
  text-shadow: 0 10px 20px rgba(0, 0, 40, 0.55);
}

.radial {
  height: 100%;
  position: absolute;
  top: 0;
  width: 99%;
}

.radial-1 {
  background-image: radial-gradient(380px at 50% 50%, transparent 25%, transparent 50%, #dd8145 50%, #c54a08 51%, #951412 60%, #550600 65%, transparent);
}

.radial-2 {
  background-image: radial-gradient(500px at 50% 50%, transparent 25%, transparent 50%, #dd8145 50%, #c54a08 51%, #951412 60%, #550600 70%, transparent 10px);
}

.radial-3 {
  background-image: radial-gradient(680px at 50% 50%, transparent 25%, transparent 50%, #dd8145 50%, #c54a08 52%, #951412 55%, #550600 70%, transparent 10px);
}

.radial-4 {
  background-image: radial-gradient(950px at 50% 50%, transparent 25%, transparent 50%, #dd8145 50%, #c54a08 52%, #951412 60%, #550600 70%, transparent 10px);
}

.radial-5 {
  background-image: radial-gradient(1325px at 50% 50%, transparent 25%, transparent 50%, #dd8145 50%, #c54a08 52%, #951412 60%, #550600 70%, rgba(0, 0, 0, 0) 10px);
}

.vignette {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-image: radial-gradient(50vw at 50% 50%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
}

footer {
  position: fixed;
  bottom: 10px;
  text-align: center;
  width: 100%;
  color: white;

}

.footer a, footer a:visited {
  color: lightblue;
}

.github-link {
  margin-bottom: 5px;
  font-size: 1.4em;
}

.attr-link {
   font-size: 1em;
}
              
            
!

JS

              
                // get the h1
var h1 = document.querySelector('h1');

// create separate elements for each letter
var letters = h1.innerHTML
  .split('')
  .map(function(letter) {
    var span = document.createElement('span');
    span.innerHTML = letter === ' ' 
      ? '&nbsp;' 
      : letter;
    span.style.opacity = 0;
    span.style.display = 'inline-block';
    return span;
  });

// clear dom of the existing elements
h1.innerHTML = '';

// readd the spans
letters.forEach(function(letter) {
  h1.appendChild(letter);
});

// create a step for each element
var steps = letters.map(function(letter) {
    return {
      el: letter,
      name: 'fadeIn',
      timings: {
        duration: 250
      }
    }
});

steps.push({
  el: 'footer',
  name: 'rubberBand'
})

Just.animateSequence({
  autoplay: true,
  steps: steps
});

              
            
!
999px

Console