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

2 Panel CTA. Original by Stephanie Yi.  Edited by Chris Broughton Nov 2019 v1.1

Edit Left Panel Colours/Text/Link on Line 11
Edit Right Panel Colours/Text/Link on Line 14

This can be used to link externally, or to other chapters by editing the panel code to line 19.
<style>html{height: 100%;}*,*:before,*:after{box-sizing: border-box;}body{background-color: #000; font-family: "Open Sans", sans-serif; height: 100%;}.vidyard_padding{height: 100%;}.vc{display: table; height: 100%; width: 100%;}.vc-inner{display: table-cell; text-align: center; vertical-align: middle;}.cta{background-color: #fff; height: 360px; margin: 0 auto; overflow: hidden; position: relative; width: 640px;}.cta-full{height: 100%; width: 100%;}.cta-half{float: left; height: 100%; width: 50%;}.cta-block{display: table; height: 100%; width: 100%;}.cta-block-inner{display: table-cell; padding: 20px; text-align: center; vertical-align: middle;}.cta-block p{line-height: 1.4125; margin: 0;}.cta-block p.white{color: #FFFFFF;}.cta-block p + .btn{margin-top: 10px;}.cta-block .btn{background-color: #414142; border-radius: 2px; color: #FFFFFF; display: inline-block; font-size: 10px; letter-spacing: 1px; padding: 8px 12px; text-decoration: none; text-transform: uppercase;}.cta-block .btn:hover{background-color: #313132;}</style><script type="text/javascript">function jumpToVideo(chapter_index){API.closeCta({disablePlay: true}); API.playChapter({chapter_index: chapter_index});}</script>
<!--Left Panel--> 
<div class="cta-half"><div class="cta-block" style="background-color:#28BF6C;"> <div class="cta-block-inner"> <p class="white">Register for an Event</p><a class="btn" href="">learn more</a> </div></div></div>

<!--Right Panel--> 
<div class="cta-half"><div class="cta-block" style="background-color:#6361FA;"> <div class="cta-block-inner"> <p class="white">Watch a demo</p><a class="btn" href="">learn more</a> </div></div></div>

<!--For a chapter selector button, use this Panel code instead:

<div class="cta-half"><div class="cta-block" style="background-color:#28BF6C;"> <div class="cta-block-inner"><p class="white">Watch this video</p><div class="btn" style="cursor:pointer;" onclick="jumpToVideo(#)">Play</div></div></div></div>