Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

Auto Save

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.

HTML

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

<!--v1.3 3 Panel CYAO - Modified by Chris Broughton Nov 2019

Use this Event code for navigating to another chapter after a video (first chapter post roll) or as a final CTA (final chapter post roll) with external links. Will display as horizontal panels at smaller widths.

Left/Top Panel Background Colour - Line 14
Middle Panel Background Colour - Line 18
Right/Bottom Panel Background Colour - Line 22
Font Colour (for all 3) - Line 26

Change 'Example #' text and links on line 39/41/44
-->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"/><link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,700" rel="stylesheet" type="text/css"/><style type="text/css">*{box-sizing: border-box;}.strips{min-height: 100vh; text-align: center; overflow: hidden; color: white;}.a:link{text-decoration: none;}.a:visited{text-decoration: none;}.a:hover{text-decoration: none;}.a:active{text-decoration: none;}.strips__strip{will-change: width, left, z-index, height; position: absolute; width: 34%; min-height: 100vh; overflow: hidden; cursor: pointer; -webkit-transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1); transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);}.strips__strip:nth-child(1){left: 0;}.strips__strip:nth-child(2){left: 34vw;}.strips__strip:nth-child(3){left: 68vw;}.strips__strip:nth-child(1) .strip__content{
  
background: #555; /*left/top panel background color */
  
-webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); -webkit-animation-name: strip1; animation-name: strip1; -webkit-animation-delay: 0.1s; animation-delay: 0.1s;}.strips__strip:nth-child(2) .strip__content{
  
background: #fbad19; /*middle panel background color */
  
-webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); -webkit-animation-name: strip2; animation-name: strip2; -webkit-animation-delay: 0.2s; animation-delay: 0.2s;}.strips__strip:nth-child(3) .strip__content{

background: #01abdf; /*right/bottom panel background color */
  
-webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0); -webkit-animation-name: strip3; animation-name: strip3; -webkit-animation-delay: 0.3s; animation-delay: 0.3s;}@media screen and (max-width: 760px){.strips__strip{min-height: 33.3vh;}.strips__strip:nth-child(1){top: 0; left: 0; width: 100%;}.strips__strip:nth-child(2){top: 33.3vh; left: 0; width: 100%;}.strips__strip:nth-child(3){top: 66.6vh; left: 0; width: 100%;}}.strips .strip__content{-webkit-animation-duration: 1s; animation-duration: 1s; -webkit-animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); -webkit-animation-fill-mode: both; animation-fill-mode: both; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; position: absolute; top: 0; left: 0; width: 100%; height: 100%; text-decoration: none;}.strips .strip__content:hover:before{-webkit-transform: skew(-30deg) scale(3) translate(0, 0); transform: skew(-30deg) scale(3) translate(0, 0); opacity: 0.1;}.strips .strip__content:before{content: ""; position: absolute; z-index: 1; top: 0; left: 0; width: 100%; height: 100%; background: white; opacity: 0.05; -webkit-transform-origin: center center; transform-origin: center center; -webkit-transform: skew(-30deg) scaleY(1) translate(0, 0); transform: skew(-30deg) scaleY(1) translate(0, 0); -webkit-transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1); transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);}.strips .strip__inner-text{will-change: transform, opacity; position: absolute; z-index: 5; top: 50%; left: 50%; width: 70%; -webkit-transform: translate(-50%, -50%) scale(0.5); transform: translate(-50%, -50%) scale(0.5); opacity: 0; -webkit-transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1); transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);}.strips__strip--expanded{width: 100%; top: 0 !important; left: 0 !important; z-index: 3; cursor: default;}@media screen and (max-width: 760px){.strips__strip--expanded{min-height: 100vh;}}.strips__strip--expanded .strip__content:hover:before{-webkit-transform: skew(-30deg) scale(1) translate(0, 0); transform: skew(-30deg) scale(1) translate(0, 0); opacity: 0.05;}.strips__strip--expanded .strip__title{opacity: 0;}.strips__strip--expanded .strip__inner-text{opacity: 1; -webkit-transform: translate(-50%, -50%) scale(1); transform: translate(-50%, -50%) scale(1);}.strip__title{display: block; margin: 0; position: relative; z-index: 2; width: 100%; font-size: 3.5vw;
 
color: white; /*generic font color*/ 
  
-webkit-transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1); transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);}@media screen and (max-width: 760px){.strip__title{font-size: 28px;}}.strip__close{position: absolute; right: 3vw; top: 3vw; opacity: 0; z-index: 10; -webkit-transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1); transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1); cursor: pointer; -webkit-transition-delay: 0.5s; transition-delay: 0.5s;}.strip__close--show{opacity: 1;}@-webkit-keyframes strip1{0%{-webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0);}100%{-webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);}}@keyframes strip1{0%{-webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0);}100%{-webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);}}@-webkit-keyframes strip2{0%{-webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0);}100%{-webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);}}@keyframes strip2{0%{-webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0);}100%{-webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);}}@-webkit-keyframes strip3{0%{-webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0);}100%{-webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);}}@keyframes strip3{0%{-webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0);}100%{-webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);}}@-webkit-keyframes strip4{0%{-webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0);}100%{-webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);}}/* Demo purposes */ body{font-family: 'Open Sans', sans-serif; -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; line-height: 1.5;}h1, h2{font-weight: 300;}.fa{font-size: 30px; color: white;}h2{font-size: 36px; margin: 0 0 16px;}p{margin: 0 0 16px;}a:link, a:visited{color:white;text-decoration: none;}</style><script type="text/javascript">function jumpToVideo(chapter_index){API.closeCta({disablePlay: true}); API.playChapter({chapter_index: chapter_index});}</script><section class="strips">
<!-- If used as a final CTA, you can adjust the href sections below. If you wish a panel to skip to another chapter in the same playlist, replace article code with:

<article class="strips__strip"><div class="strip__content" onclick="jumpToVideo(#)"><h1 class="strip__title" data-name="Lorem">Example 1</h1></div></article>

Note:
jumpToVideo(1)=second video in playlist
jumpToVideo(2)=third video in playlist
jumpToVideo(3)=fourth video in playlist
-->
  
<article class="strips__strip"><div class="strip__content"><h1 class="strip__title" data-name="Lorem"><a href="https://www.myfirsturl.com/page" target="_blank">Example 1</a></h1></div></article>

  <article class="strips__strip"><div class="strip__content"><h1 class="strip__title">
<a href="https://www.mysecondurl.com/page" target="_blank">Example 2</a></h1></div></article>
  
<article class="strips__strip"><div class="strip__content"><h1 class="strip__title">
<a href="https://www.mythirdurl.com/page" target="_blank">Example 3</a></h1></div></article>
  
</section>

              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console