Pen Settings

HTML

CSS

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

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

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.

HTML

              
                <div id="banner"><div id="wrapper"><div id="container"><svg viewBox="0 0 1552 818" data-reactid=".0.2.0.0.0"><g id="dots" data-reactid=".0.2.0.0.0.0"><circle id="dot1" class="cls-3" cx="442.6041367111111" cy="232.02370953333332" r="5" alt="Southlake VCP Site" fill="white" data-reactid=".0.2.0.0.0.0.$0--" data-svg-origin="442.6041259765625 232.02371215820312" transform="matrix(1,0,0,1,0,0)"></circle><circle id="dot2" class="cls-3" cx="265.98088915555553" cy="255.17056918888886" r="5" alt="Torrance VCP Site" fill="white" data-reactid=".0.2.0.0.0.0.$2--" data-svg-origin="265.98089599609375 255.17056274414062" transform="matrix(1,0,0,1,0,0)"></circle><circle id="dot3" class="cls-3" cx="357.63251608888885" cy="260.133407" r="5" alt="Arlington VCP Site" fill="white" data-reactid=".0.2.0.0.0.0.$4--" data-svg-origin="357.63250732421875 260.1333923339844" transform="matrix(1,0,0,1,0,0)"></circle><circle id="dot4" class="cls-3" cx="424.5765180604444" cy="221.31741296644444" r="5" alt="Twinsburg VCP Site" fill="white" data-reactid=".0.2.0.0.0.0.$6--" data-svg-origin="424.5765075683594 221.31741333007812" transform="matrix(1,0,0,1,0,0)"></circle><circle id="dot5" class="cls-3" cx="253.03617448888886" cy="232.57230577777779" r="5" alt="Rocklin VCP Site" fill="white" data-reactid=".0.2.0.0.0.0.$8--" data-svg-origin="253.0361785888672 232.5723114013672" transform="matrix(1,0,0,1,0,0)"></circle><circle id="dot6" class="cls-3" cx="323.9033484444444" cy="232.24235184444444" r="5" alt="Colorado Springs VCP Site" fill="white" data-reactid=".0.2.0.0.0.0.$10--" data-svg-origin="323.9033508300781 232.2423553466797" transform="matrix(1,0,0,1,0,0)"></circle><circle id="dot7" class="cls-3" cx="357.1464103751111" cy="259.16790478555555" r="5" alt="Southlake VCP Site" fill="white" data-reactid=".0.2.0.0.0.0.$12--" data-svg-origin="357.14642333984375 259.16790771484375" transform="matrix(1,0,0,1,0,0)"></circle><circle id="dot8" class="cls-3" cx="453.9386341333333" cy="224.69258448888888" r="5" alt="Branchburg VCP Site" fill="white" data-reactid=".0.2.0.0.0.0.$14--" data-svg-origin="453.9386291503906 224.6925811767578" transform="matrix(1,0,0,1,0,0)"></circle><circle id="dot9" class="cls-3" cx="447.3118398666667" cy="229.50210637777778" r="5" alt="Aberdeen VCP Site" fill="white" data-reactid=".0.2.0.0.0.0.$16--" data-svg-origin="447.31182861328125 229.50210571289062" transform="matrix(1,0,0,1,0,0)"></circle><circle id="dot10" class="cls-3" cx="433.7667970715555" cy="210.65867891866665" r="5" alt="Toronto VES Site" fill="white" data-reactid=".0.2.0.0.0.0.$18--" data-svg-origin="433.76678466796875 210.65867614746094" transform="matrix(1,0,0,1,0,0)"></circle><circle id="dot11" class="cls-3" cx="245.23673472" cy="185.01483149988886" r="5" alt="Vancouver VES Site" fill="white" data-reactid=".0.2.0.0.0.0.$20--" data-svg-origin="245.2367401123047 185.01483154296875" transform="matrix(1,0,0,1,0,0)"></circle><circle id="dot12" class="cls-3" cx="813.1998405777778" cy="181.31941752188888" r="5" alt="Frankfurt VES Site" fill="white" data-reactid=".0.2.0.0.0.0.$22--" data-svg-origin="813.1998291015625 181.3194122314453" transform="matrix(1,0,0,1,0,0)"></circle><circle id="dot13" class="cls-3" cx="760.3600356681777" cy="225.22197995566665" r="5" alt="Madrid VES Site" fill="white" data-reactid=".0.2.0.0.0.0.$24--" data-svg-origin="760.3600463867188 225.22198486328125" transform="matrix(1,0,0,1,0,0)"></circle><circle id="dot14" class="cls-3" cx="348.01954211777775" cy="320.83696527655553" r="5" alt="Mexico City VES Site" fill="white" data-reactid=".0.2.0.0.0.0.$26--" data-svg-origin="348.01953125 320.83697509765625" transform="matrix(1,0,0,1,0,0)"></circle><circle id="dot15" class="cls-3" cx="471.64260085955556" cy="560.8748275366667" r="5" alt="Santiago VES Site" fill="white" data-reactid=".0.2.0.0.0.0.$28--" data-svg-origin="471.6426086425781 560.8748168945312" transform="matrix(1,0,0,1,0,0)"></circle><circle id="dot16" class="cls-3" cx="574.5808797279999" cy="516.4784718591111" r="5" alt="Sao Paulo VES Site" fill="white" data-reactid=".0.2.0.0.0.0.$30--" data-svg-origin="574.5808715820312 516.4784545898438" transform="matrix(1,0,0,1,0,0)"></circle><circle id="dot17" class="cls-3" cx="1267.9392153155554" cy="307.321014307" r="5" alt="HongKong VES Site" fill="white" data-reactid=".0.2.0.0.0.0.$32--" data-svg-origin="1267.939208984375 307.3210144042969" transform="matrix(1,0,0,1,0,0)"></circle><circle id="dot18" class="cls-3" cx="1090.1556081484443" cy="322.33917637766666" r="5" alt="Mumbai VES Site" fill="white" data-reactid=".0.2.0.0.0.0.$34--" data-svg-origin="1090.1556396484375 322.33917236328125" transform="matrix(1,0,0,1,0,0)"></circle><circle id="dot19" class="cls-3" cx="1223.4205867822222" cy="221.37334482528885" r="5" alt="Singapore VES Site" fill="white" data-reactid=".0.2.0.0.0.0.$36--" data-svg-origin="1223.4205322265625 221.37335205078125" transform="matrix(1,0,0,1,0,0)"></circle><circle id="dot20" class="cls-3" cx="1427.8152671555554" cy="562.70732477" r="5" alt="Sydney VES Site" fill="white" data-reactid=".0.2.0.0.0.0.$38--" data-svg-origin="1427.8153076171875 562.7073364257812" transform="matrix(1,0,0,1,0,0)"></circle><circle id="dot21" class="cls-3" cx="1378.629265048889" cy="246.87773835888888" r="5" alt="Tokyo VES Site" fill="white" data-reactid=".0.2.0.0.0.0.$40--" data-svg-origin="1378.6292724609375 246.8777313232422" transform="matrix(1,0,0,1,0,0)"></circle></g>
 <g id="lines"><path class="cls-2" d="M258,232.6c38-21.4,65.9,4.7,65.9,4.7s33.1,18.83,20.1,81c0,0-21.1-66.93-73-63.13,0,0,53.3-26.8,81.2,4" transform="translate(0 -1)"/><path class="cls-2" d="M246.13,189.75S266,210.1,253,227.6" transform="translate(0 -1)"/><path class="cls-2" d="M254.5,237s9.38,1.75,11.4,13.2" transform="translate(0 -1)"/><path class="cls-2" d="M357.1,264.2S330,290.7,348,315.9" transform="translate(0 -1)"/><path class="cls-2" d="M328.9,232.2s42.2-47.6,90.7-10.9" transform="translate(0 -1)"/><path class="cls-2" d="M453.9,219.7c-2.1-18.3-15.2-9-15.2-9" transform="translate(0 -1)"/><path class="cls-2" d="M437.6,232c-5.4-12-3.8-16.4-3.8-16.4s10.9-1.7,13.5,8.8" transform="translate(0 -1)"/><path class="cls-2" d="M424.6,226.3s.7,31-62.4,32.9" transform="translate(0 -1)"/><path class="cls-2" d="M428.8,210.7" transform="translate(0 -1)"/><path class="cls-2" d="M442.6,237S431,294.7,353,320.8" transform="translate(0 -1)"/><path class="cls-2" d="M349.67,325.33S507.3,387.7,471.6,555.8" transform="translate(0 -1)"/><path class="cls-2" d="M476.6,560.9S517,485,573,517" transform="translate(0 -1)"/><path class="cls-2" d="M458.9,224.7s134.8-106.2,296.4.5" transform="translate(0 -1)"/><path class="cls-2" d="M760.4,220.2s-7-53.6,47.8-38.9c0,0-261.4-160.8-484.3,45.9-47.5,44.1-78.7-47.2-78.7-47.2s98.3-47.7,188.5,25.6c14,11.4-9.2,10.7-9.2,10.7" transform="translate(0 -1)"/><path class="cls-2" d="M574.6,511.5s-5.9-256,185.8-281.3" transform="translate(0 -1)"/><path class="cls-2" d="M818.2,181.3s184.1-21.6,272,136" transform="translate(0 -1)"/><path class="cls-2" d="M1095.2,322.3s51.7-150.6,123.3-101" transform="translate(0 -1)"/><path class="cls-2" d="M1272.9,307.3s48.3-95.6,100.7-60.4c0,0-41.8-89.1-145.2-25.5,0,0,51.5,25.3,39.5,80.9" transform="translate(0 -1)"/><path class="cls-2" d="M1383.6,246.9s124,63.5,49.2,315.8" transform="translate(0 -1)"/><path class="cls-2" d="M577.25,520.5S993.6,355.4,1422.8,562.7" transform="translate(0 -1)"/><path class="cls-2" d="M759,226c-254-54-409,93-409,93" transform="translate(0 -1)"/><path class="cls-2" d="M1085.2,322.3C826.3,215.7,578.25,516.5,578.25,516.5" transform="translate(0 -1)"/><path class="cls-2" d="M1092,322s98.9-82.4,170.9-14.7" transform="translate(0 -1)"/><path class="cls-2" d="M813.2,186.3S1114-25,1378,246" transform="translate(0 -1)"/><path class="cls-2" d="M245.2,180s566.4-46.6,1182.6,377.7" transform="translate(0 -1)"/><path class="cls-2" d="M353,320.8" transform="translate(0 -1)"/><path class="cls-2" d="M351.83,322.83S686,162,1087,318" transform="translate(0 -1)"/><path class="cls-2" d="M241,187.5S138,379,470,562" transform="translate(0 -1)"/><path class="cls-2" d="M263,259s23,146,208,298c0,0,86-401,287-334" transform="translate(0 -1)"/><path class="cls-2" d="M572.25,512.25S588,242,456,228" transform="translate(0 -1)"/><path class="cls-2" d="M476.25,561.25S843,507,814,184" transform="translate(0 -1)"/><path class="cls-2" d="M811,176c-311-64-377,31-377,31" transform="translate(0 -1)"/><path class="cls-2" d="M763.09,225.1S1148.44,114.91,1270,311c0,0,146,26.75,160,247.75" transform="translate(0 -1)"/><path class="cls-2" d="M475.11,564.08S985.43,648.39,1091,325c0,0,242-40,334,240" transform="translate(0 -1)"/><path class="cls-2" d="M1376,244c-155-45-286,74-286,74-139.57-132.09-326.91-92.9-326.91-92.9s-225-298.49-516-46.5" transform="translate(0 -1)"/><path class="cls-2" d="M359.61,261.1S567.9,309.93,579,518.5c0,0,421-164.5,846,46.5,0,0,72-243-202-343,0,0,1-148-410-42" transform="translate(0 -1)"/><path class="cls-2" d="M247,179.25S571.1.11,812.59,177.1" transform="translate(0 -1)"/><path class="cls-2" d="M253.12,228.1s51-72,178.49-19.5" transform="translate(0 -1)"/><path class="cls-2" d="M355.25,254.5s-.26-74-105.25-68" transform="translate(0 -1)"/><path class="cls-2" d="M320.61,232.6s-49.5,0-55.5,21" transform="translate(0 -1)"/></g>
  
  <g id="lines1" mask="url(#linesMaskMaster1)">
  <path id="line1" class="lines" d="M577.25,520.5S993.6,355.4,1422.8,562.7" transform="translate(0 0)" fill="none" stroke="#fff" stroke-miterlimit="10" stroke-width="4" stroke-linecap="round" stroke-dasharray="1 16"/></g>
    
<mask id="linesMaskMaster1">
<path id="linesMask1" d="M577.25,520.5S993.6,355.4,1422.8,562.7" transform="translate(0 0)" fill="none" stroke="#fff" stroke-miterlimit="10" stroke-width="6"/>
</mask>
  
   <g id="lines2" mask="url(#linesMaskMaster2)">
  <path id="line2" class="lines" d="M258,232.6c38-21.4,65.9,4.7,65.9,4.7s33.1,18.83,20.1,81c0,0-21.1-66.93-73-63.13,0,0,53.3-26.8,81.2,4" transform="translate(0 0)" fill="none" stroke="#fff" stroke-miterlimit="10" stroke-width="4" stroke-linecap="round" stroke-dasharray="1 16"/></g>
    
<mask id="linesMaskMaster2">
<path id="linesMask2" d="M258,232.6c38-21.4,65.9,4.7,65.9,4.7s33.1,18.83,20.1,81c0,0-21.1-66.93-73-63.13,0,0,53.3-26.8,81.2,4" transform="translate(0 0)" fill="none" stroke="#fff" stroke-miterlimit="10" stroke-width="6"/>
</mask>
  
   <g id="lines3" mask="url(#linesMaskMaster3)">
  <path id="line1" class="lines" d="M328.9,232.2s42.2-47.6,90.7-10.9" transform="translate(0 0)" fill="none" stroke="#fff" stroke-miterlimit="10" stroke-width="4" stroke-linecap="round" stroke-dasharray="1 16"/></g>
    
<mask id="linesMaskMaster3">
<path id="linesMask3" d="M328.9,232.2s42.2-47.6,90.7-10.9" transform="translate(0 0)" fill="none" stroke="#fff" stroke-miterlimit="10" stroke-width="6"/>
</mask>
  
   <g id="lines4" mask="url(#linesMaskMaster4)">
  <path id="line4" class="lines" d="M424.6,226.3s.7,31-62.4,32.9" transform="translate(0 0)" fill="none" stroke="#fff" stroke-miterlimit="10" stroke-width="4" stroke-linecap="round" stroke-dasharray="1 16"/></g>
    
<mask id="linesMaskMaster4">
<path id="linesMask4" d="M424.6,226.3s.7,31-62.4,32.9" transform="translate(0 0)" fill="none" stroke="#fff" stroke-miterlimit="10" stroke-width="6"/>
</mask>
  
    <g id="lines5" mask="url(#linesMaskMaster5)">
  <path id="line5" class="lines" d="M349.67,325.33S507.3,387.7,471.6,555.8" transform="translate(0 0)" fill="none" stroke="#fff" stroke-miterlimit="10" stroke-width="4" stroke-linecap="round" stroke-dasharray="1 16"/></g>
    
<mask id="linesMaskMaster5">
<path id="linesMask5" d="M349.67,325.33S507.3,387.7,471.6,555.8" transform="translate(0 0)" fill="none" stroke="#fff" stroke-miterlimit="10" stroke-width="6"/>
</mask>
  
   <g id="lines6" mask="url(#linesMaskMaster6)">
  <path id="line6" class="lines" d="M760.4,220.2s-7-53.6,47.8-38.9c0,0-261.4-160.8-484.3,45.9-47.5,44.1-78.7-47.2-78.7-47.2s98.3-47.7,188.5,25.6c14,11.4-9.2,10.7-9.2,10.7" transform="translate(0 0)" fill="none" stroke="#fff" stroke-miterlimit="10" stroke-width="4" stroke-linecap="round" stroke-dasharray="1 16"/></g>
    
<mask id="linesMaskMaster6">
<path id="linesMask6" d="M760.4,220.2s-7-53.6,47.8-38.9c0,0-261.4-160.8-484.3,45.9-47.5,44.1-78.7-47.2-78.7-47.2s98.3-47.7,188.5,25.6c14,11.4-9.2,10.7-9.2,10.7" transform="translate(0 0)" fill="none" stroke="#fff" stroke-miterlimit="10" stroke-width="6"/>
</mask>
  
   <g id="lines7" mask="url(#linesMaskMaster7)">
  <path id="line7" class="lines" d="M574.6,511.5s-5.9-256,185.8-281.3" transform="translate(0 0)" fill="none" stroke="#fff" stroke-miterlimit="10" stroke-width="4" stroke-linecap="round" stroke-dasharray="1 16"/></g>
    
<mask id="linesMaskMaster7">
<path id="linesMask7" d="M574.6,511.5s-5.9-256,185.8-281.3" transform="translate(0 0)" fill="none" stroke="#fff" stroke-miterlimit="10" stroke-width="6"/>
</mask>
  
   <g id="lines8" mask="url(#linesMaskMaster8)">
  <path id="line8" class="lines" d="M1383.6,246.9s124,63.5,49.2,315.8" transform="translate(0 0)" fill="none" stroke="#fff" stroke-miterlimit="10" stroke-width="4" stroke-linecap="round" stroke-dasharray="1 16"/></g>
    
<mask id="linesMaskMaster8">
<path id="linesMask8" d="M1383.6,246.9s124,63.5,49.2,315.8" transform="translate(0 0)" fill="none" stroke="#fff" stroke-miterlimit="10" stroke-width="6"/>
</mask>
  
   <g id="lines9" mask="url(#linesMaskMaster9)">
  <path id="line9" class="lines" d="M759,226c-254-54-409,93-409,93" transform="translate(0 0)" fill="none" stroke="#fff" stroke-miterlimit="10" stroke-width="4" stroke-linecap="round" stroke-dasharray="1 16"/></g>
    
<mask id="linesMaskMaster9">
<path id="linesMask9" d="M759,226c-254-54-409,93-409,93" transform="translate(0 0)" fill="none" stroke="#fff" stroke-miterlimit="10" stroke-width="6"/>
</mask>
  
   <g id="lines10" mask="url(#linesMaskMaster10)">
  <path id="line10" class="lines" d="M1085.2,322.3C826.3,215.7,578.25,516.5,578.25,516.5" transform="translate(0 0)" fill="none" stroke="#fff" stroke-miterlimit="10" stroke-width="4" stroke-linecap="round" stroke-dasharray="1 16"/></g>
    
<mask id="linesMaskMaster10">
<path id="linesMask10" d="M1085.2,322.3C826.3,215.7,578.25,516.5,578.25,516.5" transform="translate(0 0)" fill="none" stroke="#fff" stroke-miterlimit="10" stroke-width="6"/>
</mask>
    
  </svg></div></div></div>
              
            
!

CSS

              
                svg {
    width: 100%;
    margin: 0 auto;
  background: url("http://www.beckbeach.com/map_api/map.jpg") no-repeat center center; 
  background-size: cover;
}
body { background-color: #000;color: #fff;}
.cls-3{fill:#fff;opacity:0.75;}
.cls-2{fill:none;stroke:#FFFFFF;stroke-miterlimit:10;}

              
            
!

JS

              
                var mainTl = new TimelineMax({delay:0.5});

function getLines() {
   var tl_lines = new TimelineMax();
   tl_lines.staggerFrom(".cls-2", 2, {stroke:"white", strokeWidth:2, drawSVG:"0%"}, 0);
   tl_lines.from(".cls-3", 1, {scale:0, transformOrigin: 'center center', ease:Bounce.easeOut}, 0);
   tl_lines.to(".cls-2", 2, {autoAlpha: .7}, 0);
   return tl_lines;
}

function getDash() {
   var tl_dash = new TimelineMax({repeat:-1});
   tl_dash
     .fromTo("#linesMask1", .5, {drawSVG:"0% 0%"}, {drawSVG:"0% 100%"})
     .to(["#linesMask1"],.5,{drawSVG:"0% 0%", opacity:0},"+=.5")
     .fromTo("#linesMask2", .5, {drawSVG:"0% 0%"}, {drawSVG:"0% 100%"})
     .to(["#linesMask2"],.5,{drawSVG:"0% 0%", opacity:0},"+=.5")
     .fromTo("#linesMask3", .5, {drawSVG:"0% 0%"}, {drawSVG:"0% 100%"})
     .to(["#linesMask3"],.5,{drawSVG:"0% 0%", opacity:0},"+=.5")
     .fromTo("#linesMask4", .5, {drawSVG:"0% 0%"}, {drawSVG:"0% 100%"})
     .to(["#linesMask4"],.5,{drawSVG:"0% 0%", opacity:0},"+=.5")
     .fromTo("#linesMask5", .5, {drawSVG:"0% 0%"}, {drawSVG:"0% 100%"})
     .to(["#linesMask5"],.5,{drawSVG:"0% 0%", opacity:0},"+=.5")
     .fromTo("#linesMask6", .5, {drawSVG:"0% 0%"}, {drawSVG:"0% 100%"})
     .to(["#linesMask6"],.5,{drawSVG:"0% 0%", opacity:0},"+=.5")
     .fromTo("#linesMask7", .5, {drawSVG:"0% 0%"}, {drawSVG:"0% 100%"})
     .to(["#linesMask7"],.5,{drawSVG:"0% 0%", opacity:0},"+=.5")
     .fromTo("#linesMask8", .5, {drawSVG:"0% 0%"}, {drawSVG:"0% 100%"})
     .to(["#linesMask8"],.5,{drawSVG:"0% 0%", opacity:0},"+=.5")
     .fromTo("#linesMask9", .5, {drawSVG:"0% 0%"}, {drawSVG:"0% 100%"})
     .to(["#linesMask9"],.5,{drawSVG:"0% 0%", opacity:0},"+=.5")
     .fromTo("#linesMask10", .5, {drawSVG:"0% 0%"}, {drawSVG:"0% 100%"})
     .to(["#linesMask10"],.5,{drawSVG:"0% 0%", opacity:0},"+=.5");
   return tl_dash;
}

function init() {
   mainTl.add(getLines(), 'scene-intro');
   mainTl.add(getDash(), 'scene1');
}

init();
              
            
!
999px

Console