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

              
                <body>
  <script>
    document.body.classList.add('fade');
    document.addEventListener('DOMContentLoaded', () => {
      window.setTimeout(function() {
        document.body.classList.remove('fade');
      }, 230);
    });
  </script>
  <div class="bg__color-1 padding-50 text-justify">
    <h1>Lorem ipsum dolor sit amet.</h1>
    <p>
      Lorem ipsum, dolor sit amet consectetur adipisicing elit. Eveniet porro
      ullam, tempore quaerat sit nobis sapiente fugit. Iure optio quis
      delectus culpa, blanditiis hic aliquid eligendi nesciunt quo neque
      inventore. Dolor, quas, repudiandae optio minus voluptas ea earum,
      minima similique omnis officiis magni rem voluptates? Ex, odio iusto
      deleniti quo quae maiores earum dolorem, optio incidunt impedit
      laudantium non magnam. Quia itaque eum facilis quae voluptate tempore!
      Laudantium quidem debitis architecto suscipit aut nesciunt officiis non
      soluta quo numquam hic iure natus doloremque rem, recusandae.
    </p>
    <a href="fade-in-1.html" class="link">Go to previous page</a>
  </div>
  <div class="bg__color-2 padding-50 text-justify">
    <h1>Lorem ipsum dolor sit amet.</h1>
    <p>
      Lorem ipsum, dolor sit amet consectetur adipisicing elit. Eveniet porro
      ullam, tempore quaerat sit nobis sapiente fugit. Iure optio quis
      delectus culpa, blanditiis hic aliquid eligendi nesciunt quo neque
      inventore. Dolor, quas, repudiandae optio minus voluptas ea earum,
      minima similique omnis officiis magni rem voluptates? Ex, odio iusto
      deleniti quo quae maiores earum dolorem, optio incidunt impedit
      laudantium non magnam. Quia itaque eum facilis quae voluptate tempore!
      Laudantium quidem debitis architecto suscipit aut nesciunt officiis non
      soluta quo numquam hic iure natus doloremque rem, recusandae.
    </p>
  </div>
  <div class="bg__color-3 padding-50 text-justify">
    <h1>Lorem ipsum dolor sit amet.</h1>
    <p>
      Lorem ipsum, dolor sit amet consectetur adipisicing elit. Eveniet porro
      ullam, tempore quaerat sit nobis sapiente fugit. Iure optio quis
      delectus culpa, blanditiis hic aliquid eligendi nesciunt quo neque
      inventore. Dolor, quas, repudiandae optio minus voluptas ea earum,
      minima similique omnis officiis magni rem voluptates? Ex, odio iusto
      deleniti quo quae maiores earum dolorem, optio incidunt impedit
      laudantium non magnam. Quia itaque eum facilis quae voluptate tempore!
      Laudantium quidem debitis architecto suscipit aut nesciunt officiis non
      soluta quo numquam hic iure natus doloremque rem, recusandae.
    </p>
  </div>
  <div class="bg__color-4 padding-50 text-justify">
    <h1>Lorem ipsum dolor sit amet.</h1>
    <p>
      Lorem ipsum, dolor sit amet consectetur adipisicing elit. Eveniet porro
      ullam, tempore quaerat sit nobis sapiente fugit. Iure optio quis
      delectus culpa, blanditiis hic aliquid eligendi nesciunt quo neque
      inventore. Dolor, quas, repudiandae optio minus voluptas ea earum,
      minima similique omnis officiis magni rem voluptates? Ex, odio iusto
      deleniti quo quae maiores earum dolorem, optio incidunt impedit
      laudantium non magnam. Quia itaque eum facilis quae voluptate tempore!
      Laudantium quidem debitis architecto suscipit aut nesciunt officiis non
      soluta quo numquam hic iure natus doloremque rem, recusandae.
    </p>
  </div>
</body>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css2?family=Kaisei+Decol:wght@400;500&display=swap");

body {
  font-family: "Kaisei Decol", serif;
  opacity: 1;
  transition-duration: 0.7s;
  transition-property: opacity;
}

body.fade {
  opacity: 0;
}

.padding-50 {
  padding: 50px;
}

.text-justify {
  text-align: justify;
}

.bg__color-1 {
  background-color: #e8d0b3;
}

.bg__color-2 {
  background-color: #c36839;
}

.bg__color-3 {
  background-color: #7eb5a6;
}

.bg__color-4 {
  background-color: #86340a;
}

.link {
  text-decoration: none;
  font-family: inherit;
  font-size: 14px;
  color: #222222;
  font-weight: bold;
}

              
            
!

JS

              
                
              
            
!
999px

Console