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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

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


    <body onLoad= "initBanner()">

        <div id="container" class="container banner_786x400">

            <div id="content">

                <svg  viewBox="0 0 792 612">
                  <path class="st0" id="motionPath" d="M76.727,149.667c1.212,32.122,122.424-57.575,67.879,23.637s-56.364,137.576,54.545,117.576
    S64,206.637,66.424,190.273"  fill="none" stroke="#ED3329"/>

                <div id="bg"></div>
                <div id="bg_exit" class="clickable"></div>

                <div id="cta_hitArea" class=" clickable">
                    <div id="ctaUp"></div>
                    <div id="ctaOver" class="hidden"></div>
                    <div id="ctaText">Learn more</div>







@charset "UTF-8";

body, body * {vertical-align: baseline; border: 0 none; outline: 0; padding: 0; margin: 0; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 9pt; color: #000000;}
#container {position: absolute; width: 300px; height: 250px; border:1px solid #000000; 	box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; -ms-box-sizing: border-box; -o-box-sizing: border-box;
	 margin: auto; background: #ffffff; visibility:hidden;}
	#container.banner_786x400{width: 786px; height: 400px;}
#content {position: absolute; width: 100%; height: 100%; overflow: hidden;}
#content div, #content button{position:absolute; background-repeat: no-repeat; background-size: contain; -moz-background-size: contain; -webkit-background-size: contain; }
body{-webkit-text-size-adjust: none;}
.clickable{border: none; cursor: pointer; outline: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); user-select: none;}

button{border: none;}
sup {vertical-align: super; font-size: 8px;}
a, a:hover, a:active, a:visited{color:#000000;}
:focus {outline:none;}
::-moz-focus-inner {border:0;}

#bg_exit {position: absolute; width: 100%; height: 100%; cursor: pointer; opacity: 0; }

#bg {background-color:#666666; position: absolute; width: 100%; height: 100%;  }

#cta_hitArea{left:145px; top:149px;}
	#ctaUp{background-color: #77cc88; width:130px; height:38px;}
	#ctaText{left:0px; top:9px; font-family: 'PT Sans', sans-serif; font-size: 12pt; color: #ffffff; text-align: center; width:130px; }

svg {
	/*width:0px; height:0px;*/
	/*left:145px; top:149px;*/



"use strict";

var _item = {};

function initBanner(){

function startAnimation(){


      var motionPath = MorphSVGPlugin.pathDataToBezier(_item.motionPath, {align:"relative"});
      TweenLite.set(_item.cta_hitArea, {xPercent:-50, yPercent:-50});, 2, {bezier:{values:motionPath, type:"cubic"}});

function showItem(target){ = "visible";

function getSelectorsWithId(){
  _item.container = document.getElementById("container");
  _item.content = document.getElementById("content");

  var divs = _item.container.getElementsByTagName("*");

  for(var i=0; i < divs.length; i++){
    if(divs[i].id !="undefined"){
      _item[divs[i].id] = divs[i];