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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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.


                <div class="container">
<video controls crossorigin playsinline poster="" id="player">
                <!-- Video files -->
                <source src="" type="video/mp4" size="576">
                <source src="" type="video/mp4" size="720">
                <source src="" type="video/mp4" size="1080">
                <source src="" type="video/mp4" size="1440">

                <!-- Caption files -->
                <track kind="captions" label="English" srclang="en" src=""
                <track kind="captions" label="Français" srclang="fr" src="">

                <!-- Fallback for browsers that don't support the <video> element -->
                <a href="" download>Download</a>
  <div class="actions">
    <button type="button" class="btn js-play">Play</button>
    <button type="button" class="btn js-pause">Pause</button>
    <button type="button" class="btn js-stop">Stop</button>
    <button type="button" class="btn js-rewind">Rewind</button>
    <button type="button" class="btn js-forward">Forward</button>


                /* This is purely for the demo */
.container {
  max-width: 800px;
  margin: 0 auto;
.plyr {
  border-radius: 4px;
  margin-bottom: 15px;


                document.addEventListener('DOMContentLoaded', () => { 
  // This is the bare minimum JavaScript. You can opt to pass no arguments to setup.
  const player = new Plyr('#player');
  // Expose
  window.player = player;

  // Bind event listener
  function on(selector, type, callback) {
    document.querySelector(selector).addEventListener(type, callback, false);

  // Play
  on('.js-play', 'click', () => {;

  // Pause
  on('.js-pause', 'click', () => { 

  // Stop
  on('.js-stop', 'click', () => { 

  // Rewind
  on('.js-rewind', 'click', () => { 

  // Forward
  on('.js-forward', 'click', () => {