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>
  <div id="player"></div>
  <h1>Welcome</h1>
</header>

<main>
  <p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Maxime, facilis dignissimos? Veritatis et ipsam libero facilis recusandae ipsum debitis corrupti officiis, eaque quam eveniet necessitatibus ratione cum perspiciatis velit optio!</p>
  <p>Unde culpa et ipsum harum repellat aperiam odit ipsa velit? Corporis ipsum esse nemo fugit, aspernatur a cupiditate dolorem quam, aliquid saepe ut ducimus deserunt facere, perspiciatis voluptatum voluptatem culpa.</p>
  <p>Aut, laborum accusamus, commodi minima consequatur velit sed error doloremque libero nostrum fugiat esse, debitis facilis? Dolorum facere accusantium, nulla impedit amet, atque eius perferendis, autem adipisci alias quasi laborum?</p>
  <p>Rerum, accusamus libero aliquid neque culpa cum esse fugit reiciendis repellat fugiat sint fuga, eaque facilis. Laborum, praesentium iste animi amet maxime eum quia expedita inventore perspiciatis, ea eos laudantium.</p>
  <p>Excepturi vel maiores porro hic possimus eveniet. Est ullam fugiat, eligendi sequi voluptatibus, magni rem dolor impedit harum optio, qui quisquam? Labore perferendis magnam nesciunt necessitatibus nihil, dicta accusantium facilis.</p>
</main>
              
            
!

CSS

              
                :root {
  color-scheme: light dark;
  font-family: system-ui;
}

header {
  position: relative;
  height: 56.25vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

#player {
  position: absolute;
  z-index: -1;
}
              
            
!

JS

              
                new js3q({
  dataid: '04b46321-14f2-499d-b9ed-b79448ed0c3c',
  container: 'player',
  controls: 'false',
  autoplay: true,
  muted: true,
  loop: true  
})
              
            
!
999px

Console