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.


<!-- standard Munchkin embed -->
<script type="text/javascript">
(function() {
  var didInit = false;
  function initMunchkin() {
    if(didInit === false) {
      didInit = true;
      Munchkin.init('410-XOR-673', {domainLevel : 2});
  var s = document.createElement('script');
  s.type = 'text/javascript';
  s.async = true;
  s.src = '//';
  s.onreadystatechange = function() {
    if (this.readyState == 'complete' || this.readyState == 'loaded') {
  s.onload = initMunchkin;
<!-- /standard Munchkin embed -->

<div class="videos-container">
<div id="player" class="youtube-wrapper" data-video-id="M7lc1UVf-VE" data-video-width="640" data-video-height="340"></div>
<div id="player2" class="youtube-wrapper" data-video-id="tuSvnhcATUE" data-video-width="320" data-video-height="170"></div>
<div id="player3" class="youtube-wrapper" data-video-id="4PgW_X-7QNg" data-video-width="320" data-video-height="170"></div>

<!-- extended player API + Munchkin integration -->
  var YouTubeMunchkinConfig = {
    interestingTimeSS : 10, // elapsed time in seconds that you find interesting
    interestingPercentPosition : 33, // elapsed percent that you find interesting
    synthUrlBase : "/munchkinVideoTracker/video/" // base path of synthetic Visit Web Page hits (video ID is appended)    
<script src=""></script>
<!-- /extended player API + Munchkin integration -->



                .videos-container {
	width: 800px;
.youtube-wrapper[data-video-width="640"] {
	border:8px solid transparent;
.youtube-wrapper[data-video-width="320"] {
	border:3px solid transparent;
.youtube-wrapper:nth-child(1){ border-color: chartreuse; }
.youtube-wrapper:nth-child(2){ border-color: fuchsia; }
.youtube-wrapper:nth-child(3){ border-color: cyan; }
body {
  background-color: gray;
  padding: 10px;