Pen Settings



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


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


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.


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.


                <section class="component">
  <div class="component__content">
    <h1>Egestas Ligula Nullam</h1>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Commodi placeat sapiente optio maxime dolorem recusandae aliquam sed ipsam! Eius rerum, obcaecati dignissimos. Nihil consectetur reiciendis, magnam corporis rem, voluptatibus est?</p>


                // * where the magic happens
.component {
  position: relative;
  overflow: hidden; // *
  padding: 4rem 1rem;
  margin-bottom: 2rem;
  // to edit the angle:
  //  - change rotate(deg) value
  //  - change height value
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 120%;
    z-index: -1;
    transform-origin: 0 100%; // *
    transform: rotate(-2deg) translateZ(0); // *
    background-color: #1abc9c;
  .component__content {
    max-width: 1000px;
    margin: 0 auto;
    padding-left: 10px;
    padding-right: 10px;
    color: #fff;

html {
  background-color: #f7f7f7;