Pen Settings



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


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 style="width:600px">
<h1>Lorem Ipsum</h1>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Nunc mi ipsum faucibus vitae aliquet nec.
<div id="adPlayerDiv"></div>
Habitasse platea dictumst vestibulum rhoncus est pellentesque elit ullamcorper. Varius vel pharetra vel turpis nunc eget lorem dolor.

<!-- The following line is the Brightcove Player script. Replace it with your player. You can  -->
<!-- include the default player for your account by just changing the account number to use your own. -->
<!-- That way you don't even need to create a new Brightcove Player. -->
<script src=""></script>
<!-- These next two lines are the IMA3 plugin - the ad integration using Google's IMA3 HTML5 SDK. -->
<!-- You can get a little bit faster load time if you include these in the player config and build -->
<!-- them together as one unit using the Brightcove Player Management API. -->
<!-- If you do that then they will be part of the player index.min.js. -->
<link href="" rel="stylesheet"/>
<script src=""></script>
<!-- This is the ad-only player loader script. You can use it unmodified since it's hosted from -->
<!-- Brightcove's player origin and served over CDN. You can also use it as an example of how to -->
<!-- dynamically load the Brightcove Player and do your own thing. It can also be included in your -->
<!-- player config if you choose. -->
<script src=""></script>


                /* * The body style is just for the
 * background color of the codepen.
 * Do not include in your code.
body {
  background-color: #111;
  color: #fff;
 * Styles essential to the sample
 * are below


                // The following script injects an outstream (aka 'ad-only') player into the div defined above in the text called
// 'adPlayerDiv'. You can specify an ad tag here or use in-line VAST, as demonstrated below. Comment out the in-line
// adTag is your ad tag URL which defines the ads to play.
// For more information on how this works read the comments in the source code included here:

// If you don't want it to expand the div you can use the injectAdOnlyPlayer function instead.
	div: adPlayerDiv,
  adTag: "",
	height: 360,
	animationDuration: 200,
// autoplays muted by default - which is the only way it will work in some browsers
// un-comment these lines if you want to change the settings
//  autoplay: false,
//	muted: false