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

              
                <header>
  <h1>What's New Mutzi-Cat?</h1>
</header>
<article>
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quis ipsa distinctio architecto ipsum voluptate molestias voluptates quo error quod tenetur amet a nostrum delectus porro labore ab consequatur numquam eaque.</p>
  <p>Ea inventore velit vero reiciendis molestias fugit error ipsa omnis harum optio doloremque quia pariatur suscipit adipisci earum ratione veniam. Fugiat laboriosam quidem quaerat sequi voluptas deleniti ipsa harum praesentium.</p>
  <p>Dignissimos voluptatibus assumenda modi atque consequatur consectetur esse dolores quisquam veritatis voluptate doloremque cumque quo officia magni deleniti deserunt consequuntur! Fuga praesentium libero nesciunt assumenda rem itaque ab totam id.</p>
  <p>Enim veniam earum animi repellat quaerat ratione consectetur saepe praesentium modi id illo eius sed quod voluptatem debitis facere suscipit harum expedita eum aspernatur consequuntur ipsam sequi nisi deserunt officiis.</p>
  <p>Necessitatibus nulla nihil ipsa fugiat aliquam ut unde quibusdam ipsum asperiores architecto non suscipit at illum deserunt quod eligendi iure. Quidem neque distinctio in non eaque exercitationem soluta sit reiciendis.</p>
  <p>Autem non ullam ipsum eius sit minus impedit quis incidunt perspiciatis nesciunt provident possimus nemo consequatur eligendi tempora laboriosam tempore ut nostrum porro quaerat excepturi esse alias qui architecto ad.</p>
  <p>Doloremque blanditiis eos harum commodi laudantium magni voluptate sit doloribus aliquid aliquam consectetur maiores voluptatum dolore cum suscipit eius amet veniam nihil culpa molestias? Incidunt rerum modi facere nostrum consequatur!</p>
  <p>Accusamus harum aliquam nulla ea expedita quibusdam inventore odit cum molestias eum cumque quidem consequatur sunt consequuntur excepturi saepe iusto nam dicta porro tempora soluta. Recusandae rerum non laborum voluptate.</p>
  <p>Vero quae debitis atque voluptate dignissimos provident aut esse? Minus impedit eum voluptatem rem temporibus dolor architecto quaerat quos quis debitis recusandae ex neque laboriosam quod nihil maiores odio velit?</p>
 
</article>
              
            
!

CSS

              
                html, body {
  margin: 0; padding: 0;
  perspective: 1px;
  transform-style: preserve-3d;
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
}

header {
  height: 100vh;
  position: relative;
  transform-style: inherit;
}

header:before {
  background-image: url(http://beerhold.it/1000/1000);
  position: absolute;
  content: '';
  left: 0; top: 0; right: 0; bottom: 0;
  background-size: cover;
  transform: translateZ(-2px) scale(3);
  z-index:-2;
   background-position: 50% 50%;
}

header:after {
  height: 100vh;
  width: 100%;
  position: absolute;
  content: '';
  background-image: linear-gradient(to bottom, transparent 0, black 70%);
  top: 70vh;
  transform: translateZ(0.4px) scale(0.9);
  z-index: -1;
}

h1 {
  position: absolute;
  top: 50%;
  width: 100%;
  text-align: center;
  transform: translateZ(-0.5px) scale(1.5) translateY(-50%);
  color: white;
  text-shadow: 2px 2px 2px #000;
  font-size: 3rem;
  z-index: 2;
}

article {
  background-color: #fff;
  font-size: 40px;
  padding: 40px;
  position: relative;
  z-index: 3;
}

              
            
!

JS

              
                
              
            
!
999px

Console