cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <svg class="flagSVG" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600">
 
   <g class="whole">
 

    <g class="rhomboid">
      <g>
        <g id="Surface">
          <polygon points="680.61 70.31 119.81 70.45 50.72 120.27 72.38 462.61 729.21 462.11 750.88 120.05 680.61 70.31" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="687.52 71.65 126.9 69.14 47.41 118.21 69.1 458.02 725.49 466.68 747.1 122.11 687.52 71.65" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="694.2 73.03 134.2 67.88 44.64 116.15 66.33 453.43 721.27 471.23 742.77 124.16 694.2 73.03" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="700.64 74.45 141.7 66.66 42.38 114.09 64.03 448.85 716.53 475.75 737.88 126.2 700.64 74.45" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="706.84 75.92 149.39 65.49 40.63 112.03 62.22 444.26 711.29 480.24 732.45 128.23 706.84 75.92" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="712.78 77.42 157.25 64.35 39.39 109.99 60.88 439.7 705.52 484.68 726.45 130.23 712.78 77.42" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="718.45 78.96 165.28 63.26 38.64 107.95 60.01 435.16 699.24 489.06 719.9 132.22 718.45 78.96" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="173.46 62.21 38.37 105.93 59.58 430.64 692.45 493.38 706.84 373.48 723.84 80.55 173.46 62.21" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="181.8 61.21 38.57 103.93 59.6 426.16 685.13 497.62 711.54 377.15 728.94 82.17 181.8 61.21" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="190.28 60.24 39.23 101.95 60.05 421.71 677.31 501.78 715.95 380.9 733.73 83.83 190.28 60.24" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="198.9 59.32 40.33 99.99 60.92 417.31 668.98 505.85 720.05 384.74 738.21 85.52 198.9 59.32" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="207.64 58.45 41.86 98.05 62.2 412.96 660.15 509.81 723.83 388.64 742.35 87.25 207.64 58.45" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="216.5 57.61 43.8 96.14 63.88 408.67 650.83 513.66 727.28 392.63 746.15 89.01 216.5 57.61" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="225.48 56.82 46.16 94.25 65.94 404.43 641.02 517.39 730.39 396.68 749.6 90.81 225.48 56.82" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="234.56 56.07 48.91 92.4 68.38 400.25 630.75 520.98 733.15 400.8 752.68 92.64 234.56 56.07" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="243.73 55.37 52.03 90.57 71.19 396.14 620.01 524.44 735.54 404.99 755.38 94.5 243.73 55.37" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="253 54.7 55.53 88.78 74.34 392.09 608.84 527.74 737.56 409.24 757.68 96.39 253 54.7" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="262.35 54.08 59.37 87.02 77.84 388.12 597.24 530.88 739.19 413.54 759.58 98.31 262.35 54.08" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="271.78 53.51 63.56 85.29 81.66 384.22 585.23 533.85 740.41 417.9 761.05 100.25 271.78 53.51" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="281.28 52.97 68.08 83.6 85.8 380.4 572.83 536.65 741.23 422.3 762.09 102.21 281.28 52.97" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="290.85 52.48 72.91 81.95 90.25 376.66 560.07 539.25 741.62 426.75 762.69 104.2 290.85 52.48" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="300.48 52.03 78.05 80.33 94.99 373 546.96 541.67 741.59 431.24 762.83 106.2 300.48 52.03" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="310.16 51.62 83.47 78.76 100.01 369.42 533.54 543.88 741.1 435.76 762.5 108.22 310.16 51.62" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="319.89 51.26 89.18 77.22 105.31 365.93 519.82 545.88 740.17 440.31 761.68 110.26 319.89 51.26" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="329.67 50.93 95.15 75.72 110.86 362.53 505.85 547.67 738.77 444.87 760.38 112.31 329.67 50.93" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="339.48 50.65 101.38 74.26 116.67 359.22 491.64 549.24 736.89 449.45 758.57 114.36 339.48 50.65" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="349.32 50.41 107.86 72.84 122.71 355.99 477.23 550.58 734.54 454.04 756.24 116.42 349.32 50.41" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="359.2 50.22 114.57 71.47 128.99 352.86 462.64 551.69 731.7 458.63 753.4 118.48 359.2 50.22" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="369.09 50.06 121.5 70.13 135.49 349.82 447.92 552.57 728.36 463.21 750.02 120.55 369.09 50.06" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="379 49.95 128.65 68.84 142.19 346.87 433.09 553.21 724.52 467.78 746.1 122.61 379 49.95" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="388.92 49.88 136 67.58 149.09 344.02 418.18 553.61 720.17 472.33 741.64 124.65 388.92 49.88" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="398.84 49.85 143.54 66.38 156.19 341.26 403.24 553.77 715.31 476.84 736.62 126.69 398.84 49.85" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="408.77 49.86 151.27 65.21 163.47 338.6 388.29 553.7 709.94 481.31 731.05 128.71 408.77 49.86" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="418.69 49.92 159.17 64.08 170.92 336.03 373.36 553.38 704.05 485.74 724.92 130.71 418.69 49.92" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="428.61 50.02 167.24 63 178.53 333.56 358.5 552.82 697.65 490.11 718.23 132.69 428.61 50.02" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="438.5 50.16 175.46 61.97 186.31 331.19 343.74 552.02 690.73 494.41 710.98 134.64 438.5 50.16" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="448.38 50.34 183.84 60.97 194.22 328.91 329.1 550.99 683.29 498.63 703.17 136.56 448.38 50.34" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="458.24 50.56 192.35 60.02 202.28 326.73 314.62 549.73 675.35 502.77 694.8 138.43 458.24 50.56" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="468.06 50.83 201 59.11 210.47 324.64 300.34 548.24 666.89 506.81 685.88 140.27 468.06 50.83" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="477.85 51.14 209.77 58.24 218.79 322.66 286.28 546.53 657.94 510.75 676.41 142.06 477.85 51.14" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="487.6 51.49 218.66 57.42 227.22 320.77 272.47 544.6 648.5 514.57 666.41 143.8 487.6 51.49" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="497.3 51.88 227.66 56.63 235.77 318.98 258.94 542.47 638.59 518.27 655.88 145.49 497.3 51.88" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="506.95 52.32 236.76 55.9 234.07 155.47 245.72 540.12 628.2 521.83 644.83 147.11 506.95 52.32" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="516.54 52.79 245.96 55.2 220.26 154.31 232.83 537.58 617.36 525.25 633.29 148.67 516.54 52.79" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="526.06 53.31 255.25 54.55 206.85 153.06 220.3 534.85 606.08 528.51 621.26 150.16 526.06 53.31" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="535.52 53.88 264.62 53.94 193.87 151.73 208.16 531.94 594.37 531.61 608.77 151.58 535.52 53.88" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="544.9 54.48 274.07 53.37 181.32 150.32 196.41 528.86 582.27 534.54 595.83 152.92 544.9 54.48" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="554.2 55.13 283.59 52.85 169.24 148.84 185.08 525.61 569.78 537.29 582.46 154.18 554.2 55.13" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="563.41 55.82 293.17 52.37 157.64 147.28 174.19 522.21 556.93 539.86 568.7 155.35 563.41 55.82" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="302.81 51.93 146.54 145.66 163.75 518.66 543.75 542.22 564.46 318.79 572.52 56.55 302.81 51.93" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="312.51 51.53 135.95 143.99 153.78 514.98 530.25 544.38 573.01 320.57 581.53 57.33 312.51 51.53" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="322.25 51.17 125.89 142.25 144.28 511.17 516.47 546.33 581.46 322.45 590.44 58.15 322.25 51.17" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="332.03 50.86 116.36 140.47 135.28 507.25 502.44 548.07 589.79 324.42 599.22 59.01 332.03 50.86" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="341.85 50.59 107.38 138.64 126.77 503.21 488.18 549.58 597.99 326.5 607.88 59.92 341.85 50.59" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="351.71 50.36 98.95 136.76 118.77 499.08 473.72 550.87 606.07 328.67 616.41 60.86 351.71 50.36" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="361.58 50.17 91.08 134.85 111.28 494.87 459.1 551.92 614 330.93 624.8 61.85 361.58 50.17" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="371.48 50.03 83.76 132.9 104.3 490.58 444.35 552.74 621.79 333.3 633.05 62.89 371.48 50.03" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="381.39 49.93 77.01 130.93 97.83 486.22 429.49 553.33 629.43 335.76 641.13 63.97 381.39 49.93" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="391.31 49.87 70.82 128.93 91.89 481.8 414.58 553.67 636.9 338.31 649.06 65.08 391.31 49.87" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="401.24 49.85 65.18 126.91 86.46 477.33 399.63 553.78 644.19 340.97 656.8 66.25 401.24 49.85" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="411.17 49.87 60.11 124.88 81.54 472.82 384.68 553.64 651.31 343.71 664.37 67.45 411.17 49.87" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="421.09 49.94 55.58 122.83 77.14 468.28 369.77 553.26 658.24 346.56 671.74 68.7 421.09 49.94" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="431 50.05 51.6 120.77 73.24 463.71 354.93 552.65 664.97 349.5 678.91 69.99 431 50.05" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="440.89 50.2 48.16 118.71 69.85 459.13 340.19 551.8 671.49 352.52 685.87 71.32 440.89 50.2" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="450.77 50.39 45.26 116.65 66.95 454.54 325.59 550.71 677.79 355.65 692.61 72.69 450.77 50.39" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="460.61 50.62 42.88 114.58 64.54 449.95 311.15 549.39 683.86 358.86 699.11 74.1 460.61 50.62" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="470.43 50.9 41.01 112.53 62.62 445.37 296.92 547.85 689.69 362.17 705.37 75.56 470.43 50.9" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="480.21 51.22 39.65 110.48 61.16 440.8 282.92 546.09 695.28 365.56 711.37 77.05 480.21 51.22" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="489.94 51.58 38.78 108.44 60.18 436.25 269.18 544.11 700.6 369.04 717.11 78.59 489.94 51.58" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="499.63 51.98 38.4 106.42 59.64 431.73 255.72 541.92 705.66 372.61 722.57 80.16 499.63 51.98" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="509.27 52.43 38.48 104.41 59.55 427.24 242.58 539.52 710.43 376.26 727.74 81.77 509.27 52.43" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="518.84 52.91 39.03 102.42 59.9 422.78 229.78 536.94 714.91 379.99 732.6 83.42 518.84 52.91" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="528.35 53.45 40.02 100.46 60.67 418.37 217.34 534.16 719.09 383.8 737.16 85.11 528.35 53.45" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="537.79 54.02 41.45 98.51 61.85 414.01 205.28 531.21 722.95 387.69 741.38 86.83 537.79 54.02" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="547.15 54.63 43.3 96.6 63.44 409.7 193.63 528.09 726.48 391.66 745.27 88.58 547.15 54.63" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="556.43 55.29 45.55 94.7 65.41 405.45 182.41 524.8 729.67 395.69 748.8 90.37 556.43 55.29" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="565.62 55.99 48.21 92.84 67.76 401.25 171.63 521.36 732.52 399.8 751.97 92.2 565.62 55.99" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="574.71 56.74 51.24 91.01 70.47 397.12 161.3 517.78 735 403.97 754.76 94.05 574.71 56.74" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="583.69 57.52 54.65 89.21 73.55 393.06 151.44 514.07 737.11 408.2 757.16 95.93 583.69 57.52" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="592.57 58.35 58.41 87.44 76.96 389.07 142.06 510.23 738.83 412.5 759.16 97.84 592.57 58.35" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="601.32 59.23 62.52 85.7 80.71 385.15 133.18 506.28 740.16 416.84 760.73 99.78 601.32 59.23" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="609.96 60.14 66.96 84.01 84.77 381.31 124.79 502.23 741.07 421.24 761.88 101.73 609.96 60.14" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="618.45 61.1 71.71 82.34 89.15 377.56 116.91 498.07 741.57 425.67 762.59 103.72 618.45 61.1" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="626.81 62.1 76.78 80.72 93.82 373.88 109.54 493.84 741.64 430.15 762.84 105.72 626.81 62.1" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="635.01 63.15 82.14 79.13 82.08 132.43 102.69 489.53 741.26 434.67 762.62 107.73 635.01 63.15" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="643.06 64.23 87.78 77.58 75.46 130.45 96.35 485.15 740.43 439.2 761.92 109.77 643.06 64.23" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="650.94 65.36 93.69 76.08 69.41 128.44 90.53 480.72 739.15 443.77 760.74 111.81 650.94 65.36" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="658.65 66.53 99.86 74.61 63.91 126.42 85.22 476.24 737.39 448.35 759.05 113.86 658.65 66.53" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="666.17 67.75 106.27 73.18 58.96 124.38 80.43 471.73 735.15 452.94 756.85 115.92 666.17 67.75" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="673.49 69.01 112.93 71.79 54.57 122.33 76.15 467.18 732.43 457.52 754.13 117.99 673.49 69.01" fill="#fff"/>
        </g>
      </g>
    </g>
    <g class="rhomboid">
      <g >
        <g >
          <polygon points="680.61 70.31 119.81 70.45 50.72 120.27 72.38 462.61 729.21 462.11 750.88 120.05 680.61 70.31" fill="#fff"/>
        </g>
      </g>
    </g>


  </g>
<circle cx="400" cy="280" r="100" fill="#C70025"/>
</svg>
            
          
!
            
              body {
 background-color: #111;
 overflow: hidden;
 text-align: center;
}

body,
html {
 height: 100%;
 width: 100%;
 margin: 0;
 padding: 0;
}

svg {
 width: 100%;
 height: 100%;

}

polygon{
 fill:#FDFDFD;
}
            
          
!
            
              function FlagAnim() {

  var select = function(s) {
      return document.querySelector(s);
    },
    selectAll = function(s) {
      return document.querySelectorAll(s);
    }, 
      nodeListToArray = function(list, rev){
       var k = Array.prototype.slice.call(list);
       return (rev) ? k.reverse() : k;
     },
    mainSVG = select('.flagSVG'),
    mainTl, spiralTl,
      allFrames = nodeListToArray(selectAll('.rhomboid')),
      numFrames = allFrames.length-1,
      frameCount = 0,
      currFrame = 0,
      fps = 60,
      startDelay = 0,
      repeatDelay = 0,
      repeat = 0,
      yoyo = false,
      motionBlur = 0 //[0-1]
  
  this.init = function(initObj) {
    TweenMax.set(mainSVG, {
      visibility: 'visible'
    })
   
   TweenMax.set('.whole', {
    transformOrigin:'50% 50%',
    scaleX:0.8,
    scaleY:0.9
   })
   
   startDelay = (initObj) ? initObj.startDelay : startDelay;
   repeat = (initObj) ? initObj.repeat : repeat;
   repeatDelay = (initObj) ? initObj.repeatDelay : repeatDelay;
   yoyo = (initObj) ? initObj.yoyo : yoyo;
   
    mainTl = new TimelineMax({paused:(initObj) ? false : true, repeat:repeat, repeatDelay: repeatDelay, delay:startDelay, yoyo:yoyo}).timeScale(1);
    spiralTl = new TimelineMax({}).timeScale(fps);
   


   spiralTl.to({frameId: numFrames}, numFrames, {
      frameId: 0,
      ease: SteppedEase.ease.config(numFrames),
      onUpdate: function() {
        var frameId = Math.round(this.target.frameId);
        TweenMax.staggerTo(allFrames, motionBlur, {
          cycle: {
            autoAlpha: function(i) {
              return (i == frameId) ? 1 : 0
            }
          }
        }, 0)

      }
    
    })
   
   
   mainTl.add(spiralTl);
   
   TweenMax.set(mainSVG, {
    scaleX:1
   })
   TweenMax.to(mainSVG, 8, {
    //rotation:360,
    transformOrigin:'50% 50%',
    repeat:-1,
    ease:Linear.easeNone
   })


  }

  this.play = function(pos) {
   if(pos){mainTl.play(pos);return} ;    
    mainTl.play();
  }
  this.pause = function(pos) {
   if(pos){mainTl.pause(pos);return} ;    
    mainTl.pause();
  }
  this.timeline = function() {
    return mainTl;
  }
}

var myFlagAnim = new FlagAnim();
myFlagAnim.init({repeat:-1});
//myFlagAnim.play();
//ScrubGSAPTimeline(myFlagAnim.timeline())
TweenMax.globalTimeScale(0.7)
            
          
!
999px
Loading ..................

Console