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

              
                    <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
         viewBox="0 0 1366 768" style="enable-background:new 0 0 1366 768;" xml:space="preserve">
        <style type="text/css">
            .st0{fill:#003943;}
            .st1{fill:#24FFCE;}
            .st2{display:none;}
            .st3{display:inline;fill:none;stroke:#FF1AF9;stroke-miterlimit:10;}
            .st4{display:inline;fill:none;stroke:#679A00;stroke-miterlimit:10;}
            .st5{display:inline;fill:none;stroke:#FF7300;stroke-miterlimit:10;}
            .st6{display:inline;fill:none;stroke:#000000;stroke-miterlimit:10;}
            .st7{display:inline;fill:none;stroke:#FFFFFF;stroke-width:1.5348;stroke-miterlimit:10;}
            .st8{display:inline;fill:none;stroke:#D12300;stroke-width:1.5348;stroke-miterlimit:10;}
            .st9{display:inline;fill:none;stroke:#F3FF64;stroke-width:1.9105;stroke-miterlimit:10;}
        </style>
        <g id="tri-morph">
            <g id="first">
                <polygon id="one" class="st0" points="455,167 382,478 588,392 		"/>
                <polygon id="two" class="st1" points="588,392 828,290 455,167 		"/>
                <polygon id="three" class="st0" points="588,392 798,568 828,290 		"/>
                <polygon id="four" class="st0" points="455,167 828,290 672,150 		"/>
                <polygon id="five" class="st1" points="382,478 798,568 588,392 		"/>
                <polygon id="six" class="st1" points="828,290 1002,469 798,568 		"/>
                <polygon id="seven" class="st1" points="672,150 990,150 828,290 		"/>
                <polygon id="eight" class="st0" points="1002,469 828,290 990,150 		"/>
            </g>
        </g>
        <g id="second" class="st2">
            <polygon id="oneB" class="st3" points="439,140 311,452 588,392 	"/>
            <polygon id="twoB" class="st3" points="588,392 793,331 439,140 	"/>
            <polygon id="threeB" class="st3" points="588,392 742.5,627.5 793,331 	"/>
            <polygon id="fourB" class="st3" points="439.5,140.5 793.5,331.5 753.5,90.5 	"/>
            <polygon id="fiveB" class="st3" points="311.5,452.5 742.5,626.5 588,392 	"/>
            <polygon id="sixB" class="st3" points="793,331 1002,469 742.5,626.5 	"/>
            <polygon id="sevenB" class="st3" points="754.5,90.5 990,150 793.5,332.5 	"/>
            <polygon id="eightB" class="st3" points="1002,469 793.5,331.5 990,150 	"/>
        </g>
        <g id="third" class="st2">
            <polygon id="oneC" class="st4" points="542,228 426,392 588,392 	"/>
            <polygon id="twoC" class="st4" points="588,392 793,331 542,228 	"/>
            <polygon id="threeC" class="st4" points="588,392 754.5,502.5 793,331 	"/>
            <polygon id="fourC" class="st4" points="542.5,228.5 793.5,331.5 741.5,14.5 	"/>
            <polygon id="fiveC" class="st4" points="426.5,392.5 754.5,501.5 588,392 	"/>
            <polygon id="sixC" class="st4" points="793,331 1119,518 754.5,501.5 	"/>
            <polygon id="sevenC" class="st4" points="742.5,14.5 926,228 793.5,332.5 	"/>
            <polygon id="eightC" class="st4" points="1119,518 793.5,331.5 926,228 	"/>
        </g>
        <g id="fourth" class="st2">
            <polyline id="oneD" class="st5" points="416,289 588,392 578,306 416,289 	"/>
            <polygon id="twoD" class="st5" points="588,392 751,376 578,306 	"/>
            <polygon id="threeD" class="st5" points="588,392 471.5,562.5 751,376 	"/>
            <polyline id="fourD" class="st5" points="724.5,190.5 578.5,306.5 751.5,376.5 724.5,190.5 	"/>
            <polyline id="fiveD" class="st5" points="416.5,289.5 471.5,561.5 588,392 416.5,289.5 	"/>
            <polyline id="sixD" class="st5" points="891,532 471.5,561.5 751,376 891,532 	"/>
            <polyline id="sevenD" class="st5" points="725.5,190.5 1050,306 751.5,377.5 725.5,190.5 	"/>
            <polyline id="eightD" class="st5" points="891,532 751.5,376.5 1050,306 891,532 	"/>
        </g>
        <g id="fith" class="st2">
            <polyline id="oneF" class="st6" points="511.2,355.5 607.7,370.7 578,306 511.2,355.5 	"/>
            <polygon id="twoF" class="st6" points="607.7,370.7 717.8,412.8 578,306 	"/>
            <polygon id="threeF" class="st6" points="607.7,370.7 619,495 717.8,412.8 	"/>
            <polyline id="fourF" class="st6" points="712,254 578.5,306.5 718.3,413.3 712,254 	"/>
            <polyline id="fiveF" class="st6" points="511.7,356 619,494 607.7,370.7 511.7,356 	"/>
            <polyline id="sixF" class="st6" points="785,479.3 619,494 717.8,412.8 785,479.3 	"/>
            <polyline id="sevenF" class="st6" points="713,254 843.7,334.7 718.3,414.3 713,254 	"/>
            <polyline id="eightF" class="st6" points="785,479.3 718.3,413.3 843.7,334.7 785,479.3 	"/>
        </g>
        <g id="fith_1_" class="st2">
            <polyline id="oneG" class="st7" points="339.5,328.9 638,375.5 514.1,175.2 339.5,328.9 	"/>
            <polygon id="twoG" class="st7" points="638,375.5 767.3,455.3 514.1,175.2 	"/>
            <polygon id="threeG" class="st7" points="638,375.5 643.8,436.9 767.3,455.3 	"/>
            <polyline id="fourG" class="st7" points="679.4,317.9 514.8,175.9 768.1,456 679.4,317.9 	"/>
            <polyline id="fiveG" class="st7" points="340.3,329.7 643.8,435.3 638,375.5 340.3,329.7 	"/>
            <polyline id="sixG" class="st7" points="720.9,656.3 643.8,435.3 767.3,455.3 720.9,656.3 	"/>
            <polyline id="sevenG" class="st7" points="681,317.9 1057,272.6 768.1,457.6 681,317.9 	"/>
            <polyline id="eightG" class="st7" points="720.9,656.3 768.1,456 1057,272.6 720.9,656.3 	"/>
        </g>
        <g id="sixth" class="st2">
            <polyline id="oneH" class="st8" points="454.6,394.9 559,321.3 618.2,219.6 454.6,394.9 	"/>
            <polygon id="twoH" class="st8" points="559,321.3 878.9,321.3 618.2,219.6 	"/>
            <polygon id="threeH" class="st8" points="559,321.3 607,465.2 878.9,321.3 	"/>
            <polyline id="fourH" class="st8" points="797.2,154 619,220.4 879.7,322.1 797.2,154 	"/>
            <polyline id="fiveH" class="st8" points="455.4,395.7 607,463.7 559,321.3 455.4,395.7 	"/>
            <polyline id="sixH" class="st8" points="927.9,526.7 607,463.7 878.9,321.3 927.9,526.7 	"/>
            <polyline id="sevenH" class="st8" points="798.8,154 983,264 879.7,323.7 798.8,154 	"/>
            <polyline id="eightH" class="st8" points="927.9,526.7 879.7,322.1 983,264 927.9,526.7 	"/>
        </g>
        <g id="seventh" class="st2">
            <polyline id="oneI" class="st9" points="446,270 661,329 573.4,149.5 446,270 	"/>
            <polygon id="twoI" class="st9" points="661,329 730.7,329 573.4,149.5 	"/>
            <polygon id="threeI" class="st9" points="661,329 547,533.2 730.7,329 	"/>
            <polyline id="fourI" class="st9" points="809.1,154 574.3,150.5 731.7,330 809.1,154 	"/>
            <polyline id="fiveI" class="st9" points="447,271 547,531.3 661,329 447,271 	"/>
            <polyline id="sixI" class="st9" points="791,469 547,531.3 730.7,329 791,469 	"/>
            <polyline id="sevenI" class="st9" points="811,154 1031.7,279.5 731.7,331.9 811,154 	"/>
            <polyline id="eightI" class="st9" points="791,469 731.7,330 1031.7,279.5 791,469 	"/>
        </g>
    </svg>
              
            
!

CSS

              
                body {
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

svg {
    height: 100vh;
}
              
            
!

JS

              
                MorphSVGPlugin.convertToPath('polygon, polyline');

let one = document.querySelector('#one'),
  two = document.querySelector('#two'),
  three = document.querySelector('#three'),
  four = document.querySelector('#four'),
  five = document.querySelector('#five'),
  six = document.querySelector('#six'),
  seven = document.querySelector('#seven'),
  eight = document.querySelector('#eight');

let oneB = document.querySelector('#oneB'),
  twoB = document.querySelector('#twoB'),
  threeB = document.querySelector('#threeB'),
  fourB = document.querySelector('#fourB'),
  fiveB = document.querySelector('#fiveB'),
  sixB = document.querySelector('#sixB'),
  sevenB = document.querySelector('#sevenB'),
  eightB = document.querySelector('#eightB');

let oneC = document.querySelector('#oneC'),
  twoC = document.querySelector('#twoC'),
  threeC = document.querySelector('#threeC'),
  fourC = document.querySelector('#fourC'),
  fiveC = document.querySelector('#fiveC'),
  sixC = document.querySelector('#sixC'),
  sevenC = document.querySelector('#sevenC'),
  eightC = document.querySelector('#eightC');

let oneD = document.querySelector('#oneD'),
  twoD = document.querySelector('#twoD'),
  threeD = document.querySelector('#threeD'),
  fourD = document.querySelector('#fourD'),
  fiveD = document.querySelector('#fiveD'),
  sixD = document.querySelector('#sixD'),
  sevenD = document.querySelector('#sevenD'),
  eightD = document.querySelector('#eightD');

let oneF = document.querySelector('#oneF'),
  twoF = document.querySelector('#twoF'),
  threeF = document.querySelector('#threeF'),
  fourF = document.querySelector('#fourF'),
  fiveF = document.querySelector('#fiveF'),
  sixF = document.querySelector('#sixF'),
  sevenF = document.querySelector('#sevenF'),
  eightF = document.querySelector('#eightF');

let oneG = document.querySelector('#oneG'),
  twoG = document.querySelector('#twoG'),
  threeG = document.querySelector('#threeG'),
  fourG = document.querySelector('#fourG'),
  fiveG = document.querySelector('#fiveG'),
  sixG = document.querySelector('#sixG'),
  sevenG = document.querySelector('#sevenG'),
  eightG = document.querySelector('#eightG');

let oneH = document.querySelector('#oneH'),
  twoH = document.querySelector('#twoH'),
  threeH = document.querySelector('#threeH'),
  fourH = document.querySelector('#fourH'),
  fiveH = document.querySelector('#fiveH'),
  sixH = document.querySelector('#sixH'),
  sevenH = document.querySelector('#sevenH'),
  eightH = document.querySelector('#eightH');

let oneI = document.querySelector('#oneI'),
  twoI = document.querySelector('#twoI'),
  threeI = document.querySelector('#threeI'),
  fourI = document.querySelector('#fourI'),
  fiveI = document.querySelector('#fiveI'),
  sixI = document.querySelector('#sixI'),
  sevenI = document.querySelector('#sevenI'),
  eightI = document.querySelector('#eightI');

let tl = new TimelineMax({repeat: -1, yoyo: true});

tl
  .add('start')
  .to(one, 1, {morphSVG: oneB}, 'start')
  .to(two, 1, {morphSVG: twoB}, 'start')
  .to(three, 1, {morphSVG: threeB}, 'start')
  .to(four, 1, {morphSVG: fourB}, 'start')
  .to(five, 1, {morphSVG: fiveB}, 'start')
  .to(six, 1, {morphSVG: sixB}, 'start')
  .to(seven, 1, {morphSVG: sevenB}, 'start')
  .to(eight, 1, {morphSVG: eightB}, 'start')
  .add('B to C')
  .to(one, 1, {morphSVG: oneC})
  .to(two, 1, {morphSVG: twoC}, 'B to C')
  .to(three, 1, {morphSVG: threeC}, 'B to C')
  .to(four, 1, {morphSVG: fourC}, 'B to C')
  .to(five, 1, {morphSVG: fiveC}, 'B to C')
  .to(six, 1, {morphSVG: sixC}, 'B to C')
  .to(seven, 1, {morphSVG: sevenC}, 'B to C')
  .to(eight, 1, {morphSVG: eightC}, 'B to C')
  .add('C to D')
  .to(one, 1, {morphSVG: oneD})
  .to(two, 1, {morphSVG: twoD}, 'C to D')
  .to(three, 1, {morphSVG: threeD}, 'C to D')
  .to(four, 1, {morphSVG: fourD}, 'C to D')
  .to(five, 1, {morphSVG: fiveD}, 'C to D')
  .to(six, 1, {morphSVG: sixD}, 'C to D')
  .to(seven, 1, {morphSVG: sevenD}, 'C to D')
  .to(eight, 1, {morphSVG: eightD}, 'C to D')
  .add('D to F')
  .to(one , 1, {morphSVG: oneF})
  .to(two, 1, {morphSVG: twoF}, 'D to F')
  .to(three, 1, {morphSVG: threeF}, 'D to F')
  .to(four, 1, {morphSVG: fourF}, 'D to F')
  .to(five, 1, {morphSVG: fiveF}, 'D to F')
  .to(six, 1, {morphSVG: sixF}, 'D to F')
  .to(seven, 1, {morphSVG: sevenF}, 'D to F')
  .to(eight, 1, {morphSVG: eightF}, 'D to F')
  .add('F to G')
  .to(one , 1, {morphSVG: oneG})
  .to(two, 1, {morphSVG: twoG}, 'F to G')
  .to(three, 1, {morphSVG: threeG}, 'F to G')
  .to(four, 1, {morphSVG: fourG}, 'F to G')
  .to(five, 1, {morphSVG: fiveG}, 'F to G')
  .to(six, 1, {morphSVG: sixG}, 'F to G')
  .to(seven, 1, {morphSVG: sevenG}, 'F to G')
  .to(eight, 1, {morphSVG: eightG}, 'F to G')
  .add('G to H')
  .to(one , 1, {morphSVG: oneH})
  .to(two, 1, {morphSVG: twoH}, 'G to H')
  .to(three, 1, {morphSVG: threeH}, 'G to H')
  .to(four, 1, {morphSVG: fourH}, 'G to H')
  .to(five, 1, {morphSVG: fiveH}, 'G to H')
  .to(six, 1, {morphSVG: sixH}, 'G to H')
  .to(seven, 1, {morphSVG: sevenH}, 'G to H')
  .to(eight, 1, {morphSVG: eightH}, 'G to H')
  .add('H to I')
  .to(one , 1, {morphSVG: oneI})
  .to(two, 1, {morphSVG: twoI}, 'H to I')
  .to(three, 1, {morphSVG: threeI}, 'H to I')
  .to(four, 1, {morphSVG: fourI}, 'H to I')
  .to(five, 1, {morphSVG: fiveI}, 'H to I')
  .to(six, 1, {morphSVG: sixI}, 'H to I')
  .to(seven, 1, {morphSVG: sevenI}, 'H to I')
  .to(eight, 1, {morphSVG: eightI}, 'H to I');






















/* This Pen Loads the Following

  TweenMax: latest version
    -TweenLite
    -TweenMax
    -TimelineLite
    -TimelineMax
    -CSSPlugin
    -BezierPlugin
    -DirectionalRotationPlugin
    -AttrPlugin
    -RoundPropsPlugin
    -EasePack
    
  Please use the minimal amount of code possible to recreate the problem you are experiencing.
  
*/
              
            
!
999px

Console