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.


                <!--Disclaimer: This CodePen is provided for instructional purposes only. Vidyard cannot support or guarantee any dependencies on third-party code or libraries such as JavaScript, jQuery or CSS-->

<!--Share your player Post Roll Event. Original by Josh Thomas. 
V2.01 Edited by Chris Broughton Feb 2020.

Adjust the colours to match your branding. Default will add a link to each Social option.

Line 15 - Remove this line to use Vidyard background color selector
Line 17 - Change Button Background Color (no hover).
Line 18 - Change Button Colour (on hover).
Line 21 - Change Font of Title.
Line 29 - Adjust the email subject. A sharing page link will be added to the body text of the email.
Line 31 - Delete this script if you want to manually add sharing links to the end of the Custom URLs

<link rel="stylesheet" href=""><style>
  html{background-color:black;}/* Remove this line to use Vidyard background color selector */
            body{text-align:center;}div{width: 50%;display: inline-block; position:absolute; top:50%; left:50%; -ms-transform:translate(-50%,-50%); -webkit-transform:translate(-50%,-50%); transform:translate(-50%,-50%);}/* Icons */ a{color:#fff;
            background: #6361FA;  /* Change Button Background Color (not on hover)*/
            border-radius:4px; text-align:center; text-decoration:none; font-family:fontawesome; position: relative; display: inline-block; width:40px; height:28px; padding-top:12px; margin:0 2px; -o-transition:all .5s; -webkit-transition: all .5s; -moz-transition: all .5s; transition: all .5s; -webkit-font-smoothing: antialiased;}a:hover{
            background: #46DB83; /* Change Button Color (on hover) */
            }/* pop-up text */ a span{color:#666; position:absolute; font-family:sans-serif; bottom:0; left:-25px; right:-25px; padding:5px 7px; z-index:-1; font-size:14px; border-radius:2px; background:#fff; visibility:hidden; opacity:0; -o-transition:all .5s cubic-bezier(0.68, -0.55, 0.265, 1.55); -webkit-transition: all .5s cubic-bezier(0.68, -0.55, 0.265, 1.55); -moz-transition: all .5s cubic-bezier(0.68, -0.55, 0.265, 1.55); transition: all .5s cubic-bezier(0.68, -0.55, 0.265, 1.55);}/* pop-up text arrow */ a span:before{content:''; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid #fff; position:absolute; bottom:-5px; left:40px;}/* text pops up when icon is in hover state */ a:hover span{bottom:50px; visibility:visible; opacity:1;}/* font awesome icons */ a:nth-of-type(1):before{content:'\f09a';}a:nth-of-type(2):before{content:'\f099';}a:nth-of-type(3):before{content:'\f0e1';}a:nth-of-type(4):before{content:'\f0e0';}h3{margin-bottom: 40px; color: #ffffff;
            font-family: "Open Sans", Helvetica, sans-serif; /* Change Font of Title */
            }@keyframes pulse_animation{0%{transform: scale(1);}10%{transform: scale(1);}20%{transform: scale(1);}30%{transform: scale(1);}40%{transform: scale(1.05);}50%{transform: scale(1);}60%{transform: scale(1);}70%{transform: scale(1.05);}80%{transform: scale(1);}100%{transform: scale(1);}}.pulse{animation-name: pulse_animation; animation-duration: 5000ms; animation-iteration-count: infinite; animation-timing-function: linear;}
  <h3 class="pulse">Share the good news!</h3>
  <a href="" target="_blank"><span>Facebook</span></a>
  <a href="" target="_blank"><span>Twitter</span></a>
  <a href="" target="_blank"><span>LinkedIn</span></a>
  <a href="mailto:?subject=Watch this video!&body=" target="_blank"><span>Email</span></a>
  var vyShareUrl = "" + vyContext.player_id
          var FBurl = $(document).find("a:contains('Facebook')").attr('href');
          var LIurl = $(document).find("a:contains('LinkedIn')").attr('href');
          var TWurl = $(document).find("a:contains('Twitter')").attr('href');
          var EMurl = $(document).find("a:contains('Email')").attr('href');
         $(document).find("a:contains('Facebook')").attr('href', FBurl + vyShareUrl);
          $(document).find("a:contains('LinkedIn')").attr('href', LIurl + vyShareUrl);
          $(document).find("a:contains('Twitter')").attr('href', TWurl + vyShareUrl);
          $(document).find("a:contains('Email')").attr('href', EMurl + vyShareUrl);