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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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.

            
              <canvas></canvas>
<svg class="canada" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1125 642.9" >
	<style type="text/css">
	.st0{fill:#7F818B;}
	.st1{fill:#8A8D9B;}
	.st2{fill:#9A9DA5;}
	.st3{fill:#DFE1E5;}
	.st4{fill:#D4D8DD;}
	.st5{fill:#72747C;}
	.st6{fill:#B2B1B2;}
	.st7{fill:#6A6D73;}
	.st8{fill:#4E352E;}
	.st9{fill:#5D4137;}
	.st10{fill:#8BC249;}
	.st11{fill:#679F42;}
	.st12{fill:#568B3E;}
	.st13{fill:#F78C1E;}
	.st14{fill:#F47C20;}
	.st15{fill:#ED6D23;}
	.st16{fill:#FCB64E;}
	.st17{fill:#FAA629;}
	.st18{fill:#3E2723;}
	.st19{fill:#795649;}
	.st20{fill:#6D4D42;}
	.st21{fill:#D8D8D8;}
	.st22{fill:#E8E8E8;}
	.st23{fill:#434343;}
	.st24{fill:#333333;}
	.st25{fill:#C15C38;}
	.st26{fill:#CD6646;}
	.st27{fill:#89301D;}
	.st28{fill:#87211A;}
	.st29{fill:#A52822;}
	.st30{fill:#C62828;}
	.st31{fill:#D32E2E;}
	.st32{fill:#B72025;}
	.st33{fill:#C6C6C5;}
	.st34{fill:#B0BEC5;}
	.st35{fill:#78909C;}
	.st36{fill:#90A4AE;}
	.st37{fill:#D0D8DC;}
	.st38{fill:#689692;}
	.st39{fill:#508780;}
	.st40{fill:#016064;}
	.st41{fill:#FFD54E;}
	.st42{fill:#FFE081;}
	.st43{fill:#0277BD;}
	.st44{fill:#00579B;}
	.st45{fill:#D92B58;}
	.st46{fill:#590D26;}
	.st47{fill:#B2224C;}
	.st48{fill:#8E183D;}
	.st49{fill:#D84A72;}
	.st50{fill:#585a61;}
	.st51{fill:#585a61;}
	</style>
	<g id="bottomMountain" z="-30">
		<polygon class="st0" points="322.4 462.3 276.2 595.4 500 600"/>
		<polygon class="st50" points="157.8 408 276.2 595.4 100 580"/>
		<polygon class="st5" points="322.4 462.3 276.2 595.4 157.8 408"/>
		<polygon class="st0" points="188.6 309.6 157.8 408.1 322.4 462.3"/>
		<polygon class="st2" points="322.4 462.3 281.7 332.2 189 309.6"/>
		<polygon class="st6" points="188.7 309.6 281.7 332.2 240 245.8"/>
		<polygon class="st4" z="-29" points="194.4 329.1 215.8 293.7 243.1 313.5"/>
		<polygon class="st3" z="-29" points="266.5 330.6 241.2 262.5 215.8 293.7"/>
	</g>
	<g id="rightMountain" z="-20">
		<polygon class="st0" points="388.3 594.6 555.8 594.6 490.4 439.7"/>
		<polygon class="st1" points="365 340.8 490.4 439.7 388.3 595.4"/>
		<polygon class="st2" points="428.1 279.2 365 340.8 490.4 439.7"/>
		<polygon class="st0" points="276.2 595.4 365 340.8 388.3 595.4"/>
		<polygon class="st3" z="-19" points="376.7 341 425.2 294.8 449.1 359.7"/>
		<polygon class="st4" z="-19" points="370.7 378.9 376.7 341 449.1 359.7"/>
		<polygon class="st3" z="-19" points="414.8 368.2 449.1 359.7 459.8 405.2"/>
	</g>
	<g id="leftMountain" z="-20">
		<polygon class="st0" points="276.2 595.4 59.7 467.2 0 593.9"/>
		<polygon class="st2" points="276.2 595.4 169.8 411.9 59.7 467.2"/>
		<polygon class="st6" points="59.7 467.2 169.8 411.9 105.4 372.2"/>
		<polygon class="st4" z="-19" points="157.4 414 84.2 442 93.6 414.4"/>
		<polygon class="st3" z="-19" points="109.5 384 93.6 414.4 157.4 414"/>
		<polygon class="st3" z="-19" points="168 433.1 110.7 431.9 157.7 414"/>
	</g>
	<g id="trees" z="-10">
		<polygon class="st8" points="545.1 601.7 513.4 601.1 514.1 526.8"/>
		<polygon class="st9" points="546.5 526.4 545.1 601.7 514.1 526.8"/>
		<polygon class="st10" points="573.9 475.1 621.5 527.2 431.9 527.2"/>
		<polygon class="st11" points="482.4 475.1 573.9 475.1 431.9 527.2"/>
		<polygon class="st10" points="446.6 475.4 559.8 417.5 610.3 475.5"/>
		<polygon class="st11" points="447.2 475.5 496.9 418.3 559.8 417.5"/>
		<polygon class="st10" points="550.7 365.4 586.7 418.8 469.6 419.2"/>
		<polygon class="st12" points="511.8 391.4 530.4 326.9 550.7 365.4"/>
		<polygon class="st11" points="511.8 391.4 530.8 327.7 469.6 419.2"/>
	</g>
	<g id="orangeTree" z="5">
		<polygon class="st8" z="0" points="591.1 600.8 620.7 601.1 586.4 520.2"/>
		<polygon class="st9" z="0" points="585.7 518.5 620.7 601.1 603.7 514.8"/>
		<polygon class="st13" points="627.7 467.2 637.4 524.8 601.1 516.5"/>
		<polygon class="st13" points="552.4 530.5 591.4 474.8 601.1 516.5"/>
		<polygon class="st14" points="582 434.5 639.8 449.6 604.8 406.3"/>
		<polygon class="st13" points="582 434.5 660.4 490.5 639.4 449.5"/>
		<polygon class="st15" points="627.7 467.2 637.4 524.8 660.4 490.5"/>
		<polygon class="st16" points="566.1 428.5 539.4 486.8 604.8 406.3"/>
		<polygon class="st17" points="627.7 467.2 539.4 486.8 582 434.5"/>
		<polygon class="st14" points="601.1 516.5 628.1 467.2 591.4 474.8"/>
		<polygon class="st15" points="591.4 474.8 539.4 486.8 552.4 530.5"/>
	</g>
	<g id="beaver" z="12">
		<polygon class="st18" points="447.3 518.2 456.9 518.7 454.8 525.9"/>
		<polygon class="st19" points="410.6 515.7 456.9 518.7 432.2 508.2"/>
		<polygon class="st20" points="452.1 534.9 447.3 518.2 454.8 525.9"/>
		<polygon class="st9" points="452.1 534.9 447.2 518.1 410.6 515.7"/>
		<polygon class="st9" points="399.1 519.9 400.5 509.2 432.2 508.2"/>
		<polygon class="st8" points="399.1 519.9 411.9 585.8 410.9 515.7"/>
		<polygon class="st19" points="452.1 534.9 431.8 555.3 410.9 515.7"/>
		<polygon class="st9" points="410.9 515.7 431.8 555.3 411.7 587.4"/>
		<polygon class="st19" points="431.8 555.3 447.7 563.9 416.3 580"/>
		<polygon class="st19" points="357.7 524.9 399.1 519.9 412.4 588.1"/>
		<polygon class="st9" points="335 553.4 357.7 524.9 412.4 588.1"/>
		<polygon class="st19" points="363.1 618.7 412.4 588.1 335 553.4"/>
		<polygon class="st8" points="363.1 618.7 335 553.4 331.4 587.1"/>
		<polygon class="st18" points="274.9 587.4 323.2 578.6 338.9 594.6"/>
		<polygon class="st8" points="274.9 587.4 308.3 613.6 338.9 594.6"/>
		<polygon class="st18" points="266.4 598.9 274.9 587.4 308.3 613.6"/>
		<polygon class="st9" points="381.6 606.9 411.4 618.2 363.1 618.7"/>
		<polygon class="st9" points="363.1 618.7 349.7 605.6 338.9 618.5"/>
		<polygon class="st21" points="447.7 548.8 447.7 539.7 452.1 534.9"/>
		<polygon class="st22" points="452.4 548.6 447.7 548.8 452.1 534.9"/>
	</g>
	<g id="syrup" z="20">
		<polygon class="st23" points="739.5 432.7 740 417.6 702.4 413.3"/>
		<polygon class="st24" points="739.5 432.7 700.5 428.4 702.4 413.3"/>
		<polygon class="st25" points="705.4 429 750 479.4 734.5 432.1"/>
		<polygon class="st26" points="750.2 479.8 685.2 472.5 705.4 429"/>
		<polygon class="st25" points="774.7 510.7 757.1 480.3 679.5 471"/>
		<polygon class="st26" points="679.5 471 774.7 510.7 763.1 562.7"/>
		<polygon class="st25" points="679.5 471 655 489.9 763.1 562.7"/>
		<polygon class="st26" points="763.1 562.7 655 489.9 648.4 537.7"/>
		<polygon class="st26" points="741.8 599.3 763.1 562.7 665.8 591.9"/>
		<polygon class="st25" points="665.8 591.9 648.4 537.7 763.1 562.7"/>
		<polygon class="st27" z="21" points="667.9 550.8 757.2 553.5 737.4 593.1"/>
		<polygon class="st28" z="21" points="741.1 552.8 658.8 545.3 667.9 550.8"/>
		<polygon class="st29" z="21" points="658.8 545.3 671.6 586.4 737.4 593.1"/>
		<polygon class="st30" z="21" points="740.8 528.6 739.3 514.6 711.8 536.1"/>
		<polygon class="st31" z="21" points="726.5 508.8 739.3 514.6 711.4 536.4"/>
		<polygon class="st31" z="21" points="680.5 522.8 708.9 537.3 684.7 509.4"/>
		<polygon class="st30" z="21" points="684.7 509.4 698.4 506.2 708.2 536.5"/>
		<polygon class="st32" z="20.5" points="723.7 542.7 712.9 505.6 694.6 539.6"/>
		<polygon class="st30" z="21" points="709.9 540.9 713.8 493.2 724.5 502.9"/>
		<polygon class="st31" z="21" points="701.4 501.6 709.9 540.9 713.8 493.2"/>
	</g>
	<g id="lighthouse" z="-20">
		<polygon class="st31" points="968.4 317.1 1006.6 299.2 1044.9 318"/>
		<polygon class="st3" points="977.2 343.8 1037.3 318 978.3 317.3"/>
		<polygon class="st33" points="977.2 343.8 1037.3 318 1035.6 343.8"/>
		<polygon class="st31" points="1042.7 359.6 1039.3 343.8 973.9 343.8"/>
		<polygon class="st34" points="978.8 375.4 963.3 359.3 1050.5 359.6"/>
		<polygon class="st35" points="978.8 375.4 956.8 537.4 987.3 543.4"/>
		<polygon class="st36" points="1032.9 375.4 978.8 375.4 1050.5 359.6"/>
		<polygon class="st35" points="978.8 375.4 996.9 375.5 987.3 543.4"/>
		<polygon class="st32" points="1042.7 359.6 970.2 359.6 973.9 343.8"/>
		<polygon class="st37" points="1027.6 544.4 996.9 375.5 1018.2 375.7"/>
		<polygon class="st37" points="987.3 543.4 996.9 375.5 1027.6 544.4"/>
		<polygon class="st3" points="1053.7 537.4 1032.9 375.4 1018.2 375.7"/>
		<polygon class="st3" points="1053.7 537.4 1018.2 375.7 1027.6 544.4"/>
		<polygon z="-15" class="st38" points="866.4 585.7 940.3 567.6 987.1 611.9"/>
		<polygon z="-15" class="st7" points="1125 592.8 1022.6 544.9 987.1 611.9"/>
		<polygon z="-15" class="st39" points="820.1 595.8 843.2 560.5 909.1 575.6"/>
		<polygon z="-15" class="st40" points="932.8 599.3 786.4 602.8 866.4 585.7"/>
		<polygon z="-15" class="st1" points="987.1 611.9 1022.6 544.9 940.3 567.6"/>
		<polygon z="-15" class="st0" points="1099.9 580.7 1022.6 544.9 1081.5 527.8"/>
		<polygon z="-15" class="st2" points="1034.7 541.9 909.1 575.6 943.4 525.8"/>
	</g>
  <g id="stick" z="15">
    <polygon class="st41" points="671.1 613 739.2 618.4 666.5 634.8	"/>
    <polygon class="st42" points="739.2 618.4 723.6 641.7 666.5 634.8	"/>
    <polygon class="st43" points="756.4 637.2 783.9 607.7 739.2 618.4	"/>
    <polygon class="st44" points="783.9 607.7 815.3 523 739.2 618.4	"/>
    <polygon class="st41" points="928.3 389.1 920.2 385.1 819.6 525.4	"/>
    <polygon class="st44" points="724.6 642.9 739.2 618.4 756.4 637.2	"/>
    <polygon class="st43" points="783.9 607.7 833.9 536.4 815.3 523	"/>
    <polygon class="st42" points="928.3 389.1 819.6 525.4 827.8 532.1	"/>
  </g>
  <g id="skate" z="15">
    <polygon class="st3" points="910.8 525.4 886 527 911.6 505.1	"/>
    <polygon class="st45" points="886.5 526.6 910.8 525.4 908.1 579.7	"/>
    <polygon class="st45" points="833.1 597.4 908.1 579.7 886.7 525.6	"/>
    <polygon class="st46" points="903.1 589.1 823.7 599.4 908.1 579.7	"/>
    <polygon class="st3" points="820.7 579.9 823.7 599.4 833.1 597.4	"/>
    <polygon class="st47" points="863.8 556.3 838.9 567.2 833.1 597.4	"/>
    <polygon class="st3" points="830.3 601.4 896.1 591.6 913.3 612.7	"/>
    <polygon class="st48" z="16" points="875.8 564 848.9 576.3 886.2 526	"/>
    <polygon class="st33" points="830.3 601.4 822.7 623.2 913.3 612.7	"/>
    <polyline class="st47" points="874.5 495.8 886.7 526 889.1 492.8 874.5 495.8	"/>
    <polygon class="st48" points="886.7 526 874.5 495.8 868.4 550.1	"/>
    <polygon class="st33" points="820.7 579.9 833.1 597.4 838.9 567.2	"/>
  </g>
	<g id="letter-c">
		<polygon class="st45" points="179.2 50.8 202.5 26.8 182.4 11.1"/>
		<polygon class="st47" points="157.3 39.2 182.4 11.1 179.2 50.8"/>
		<polygon class="st49" points="143.7 0.3 182.4 11.1 157.3 39.2"/>
		<polygon class="st45" points="132 37 143.7 0.3 157.3 39.2"/>
		<polygon class="st47" points="101.9 8.1 143.7 0.3 132 37"/>
		<polygon class="st45" points="110.4 47.7 101.9 8.1 132 37"/>
		<polygon class="st49" points="70.3 32.4 101.9 8.1 110.4 47.7"/>
		<polygon class="st47" points="94.9 69.3 70.3 32.4 110.4 47.7"/>
		<polygon class="st45" points="70.3 32.4 50.5 69.8 94.9 69.3"/>
		<polygon class="st49" points="91.9 99.2 94.9 69.3 50.5 69.8"/>
		<polygon class="st47" points="49.9 111.3 91.9 99.2 50.5 69.8"/>
		<polygon class="st45" points="67.2 142.9 49.9 111.3 91.9 99.2"/>
		<polygon class="st49" points="107.5 126.1 91.9 99.2 67.2 142.9"/>
		<polygon class="st47" points="89.8 164.5 107.5 126.1 67.2 142.9"/>
		<polygon class="st45" points="138.3 140.2 107.5 126.1 89.8 164.5"/>
		<polygon class="st49" points="131.1 178.4 138.3 140.2 89.8 164.5"/>
		<polygon class="st47" points="164.6 174.2 131.1 178.4 138.3 140.2"/>
		<polygon class="st45" points="176.5 125.9 138.3 140.2 164.6 174.2"/>
		<polygon class="st49" points="188.9 162.6 164.6 174.2 176.5 125.9"/>
		<polyline class="st45" points="188.9 162.6 203.5 148.3 176.5 125.9"/>
	</g>
	<g id="letter-a">
		<polygon class="st47" points="281.3 8.8 294.8 1.6 310.3 36.3"/>
		<polygon class="st49" points="273.4 25.5 310.3 36.3 281.3 8.8"/>
		<polygon class="st45" points="260.6 53.4 273.4 25.5 310.3 36.3"/>
		<polygon class="st47" points="322.9 63.2 310.3 36.3 260.6 53.4"/>
		<polygon class="st47" points="239.7 96.7 260.6 53.4 288.8 75.9"/>
		<polygon class="st47" points="288.8 75.9 310 117.3 322.9 63.2"/>
		<polygon class="st49" points="270.4 117 239.7 96.7 288.8 75.9"/>
		<polygon class="st49" points="322.9 63.2 336.9 92.7 310 117.3"/>
		<polygon class="st49" points="322.9 63.2 288.8 75.9 260.8 53.4"/>
		<polygon class="st45" points="225.6 128.5 239.7 96.7 270.4 117"/>
		<polygon class="st45" points="283.7 150.7 270.4 117 323.2 150.2"/>
		<polygon class="st47" points="255.5 150.7 270.4 117 225.6 128.5"/>
		<polygon class="st49" points="283.7 150.7 270.4 117 255.5 150.7"/>
		<polygon class="st47" points="270.4 117 310 117.3 323.6 150.5"/>
		<polygon class="st45" points="336.9 92.7 310 117.3 323.6 150.5"/>
		<polygon class="st45" points="333.7 175.9 323.6 150.5 375 176.2"/>
		<polygon class="st49" points="353.9 129.5 323.6 150.5 336.9 92.7"/>
		<polygon class="st47" points="375 176.2 353.9 129.5 323.6 150.5"/>
		<polygon class="st49" points="255.5 150.7 203.8 175 225.6 128.5"/>
		<polygon class="st45" points="244.9 174.9 203.8 175 255.7 150.8"/>
	</g>
	<g id="letter-n">
		<polygon class="st47" points="430.6 175.7 393.4 175 392.7 141.7"/>
		<polygon class="st47" points="432.1 79.1 392.9 77.1 437.2 29"/>
		<polygon class="st49" points="431.3 124.4 430.6 175.7 392.7 141.7"/>
		<polygon class="st47" points="392.9 77.1 431.3 124.4 392.7 141.7"/>
		<polygon class="st45" points="392.7 35.2 410 0 437.2 29"/>
		<polygon class="st49" points="392.9 77.1 392.7 35.2 437.2 29"/>
		<polygon class="st45" points="392.9 77.1 432.1 79.1 431.3 124.4"/>
		<polygon class="st47" points="392.7 35.2 392.7 0.2 410 0"/>
		<polygon class="st49" points="463.8 111.3 437.2 29 432.1 79.1"/>
		<polygon class="st47" points="463.8 111.3 476 68.9 437.2 29"/>
		<polygon class="st45" points="463.8 111.3 502.9 151.3 476 68.9"/>
		<polygon class="st49" points="476 68.9 502.6 95.1 502.9 151.3"/>
		<polygon class="st47" points="503.7 2.7 542.1 3.6 541.9 57.4"/>
		<polygon class="st45" points="502.7 42.6 541.9 57.4 503.7 2.7"/>
		<polygon class="st49" points="502.7 42.6 541.6 100.8 541.9 57.4"/>
		<polygon class="st47" points="502.7 42.6 502.6 95.1 541.6 100.8"/>
		<polygon class="st45" points="502.6 95.1 502.9 151.3 541.6 100.8"/>
		<polygon class="st49" points="542.1 140.3 502.9 151.3 541.6 100.8"/>
		<polygon class="st47" points="526.8 178.3 542.1 140.3 502.9 151.3"/>
		<polygon class="st45" points="541.7 177.8 542.1 140.3 526.8 178.3"/>
	</g>
	<g id="letter-a2_1_">
		<polygon class="st45" points="654.1 8.8 640.6 1.6 625.1 36.3"/>
		<polygon class="st47" points="662.1 25.5 625.1 36.3 654.1 8.8"/>
		<polygon class="st45" points="674.8 53.4 662.1 25.5 625.1 36.3"/>
		<polygon class="st49" points="612.5 63.2 625.1 36.3 674.8 53.4"/>
		<polygon class="st45" points="695.8 96.7 674.8 53.4 646.6 75.9"/>
		<polygon class="st45" points="646.6 75.9 625.4 117.3 612.5 63.2"/>
		<polygon class="st47" points="665 117 695.8 96.7 646.6 75.9"/>
		<polygon class="st47" points="612.5 63.2 598.5 92.7 625.4 117.3"/>
		<polygon class="st47" points="612.5 63.2 646.6 75.9 674.6 53.4"/>
		<polygon class="st49" points="709.8 128.5 695.8 96.7 665 117"/>
		<polygon class="st49" points="651.7 150.7 665 117 612.2 150.2"/>
		<polygon class="st45" points="679.9 150.7 665 117 709.8 128.5"/>
		<polygon class="st47" points="651.7 150.7 665 117 679.9 150.7"/>
		<polygon class="st45" points="665 117 625.4 117.3 611.8 150.5"/>
		<polygon class="st49" points="598.5 92.7 625.4 117.3 611.8 150.5"/>
		<polygon class="st49" points="601.7 175.9 611.8 150.5 560.4 176.2"/>
		<polygon class="st47" points="581.5 129.5 611.8 150.5 598.5 92.7"/>
		<polygon class="st45" points="560.4 176.2 581.5 129.5 611.8 150.5"/>
		<polygon class="st47" points="679.9 150.7 731.6 175 709.8 128.5"/>
		<polygon class="st49" points="690.5 174.9 731.6 175 679.7 150.8"/>
	</g>
	<g id="letter-d">
		<polygon class="st49" points="747.3 4.2 785.5 39.9 747.3 56.7"/>
		<polygon class="st45" points="785.5 39.9 785.5 87.6 747.3 56.7"/>
		<polygon class="st47" points="747.1 115.2 785.5 87.6 747.3 56.7"/>
		<polygon class="st49" points="785.3 139.7 785.5 87.6 747.1 115.2"/>
		<polygon class="st45" points="748.6 175 785.3 139.7 747.1 115.2"/>
		<polygon class="st45" points="747.3 4.2 794.8 3 785.5 39.9"/>
		<polygon class="st47" points="785.5 39.9 823.8 41.2 794.8 3"/>
		<polygon class="st49" points="852.2 10.2 794.8 3 823.8 41.2"/>
		<polygon class="st45" points="853.7 68.5 823.8 41.2 852.2 10.2"/>
		<polygon class="st47" points="852.2 10.2 883.9 36.8 853.7 68.5"/>
		<polygon class="st49" points="853.7 68.5 898.9 82.7 883.9 36.8"/>
		<polygon class="st47" points="857.1 95.3 853.7 68.5 898.9 82.7"/>
		<polygon class="st45" points="857.1 95.3 891.7 124.1 898.9 82.7"/>
		<polygon class="st49" points="857.1 95.3 845.5 123.4 891.7 124.1"/>
		<polygon class="st45" points="845.5 123.4 891.7 124.1 866.2 157.8"/>
		<polygon class="st47" points="845.5 123.4 814.5 139.6 866.2 157.8"/>
		<polygon class="st49" points="814.5 139.6 820.1 176.2 866.2 157.8"/>
		<polygon class="st45" points="814.5 139.6 785.3 139.7 820.1 176.2"/>
		<polygon class="st47" points="785.3 139.7 768.8 155.4 820.1 176.2"/>
		<polygon class="st49" points="748.6 175 820.1 176.2 768.8 155.4"/>
	</g>
	<g id="letter-a3">
		<polygon class="st49" points="981.5 8.8 994.9 1.6 1010.5 36.3"/>
		<polygon class="st47" points="973.5 25.5 1010.5 36.3 981.5 8.8"/>
		<polygon class="st49" points="960.7 53.4 973.5 25.5 1010.5 36.3"/>
		<polygon class="st45" points="1023.1 63.2 1010.5 36.3 960.7 53.4"/>
		<polygon class="st49" points="939.8 96.7 960.7 53.4 989 75.9"/>
		<polygon class="st49" points="989 75.9 1010.1 117.3 1023.1 63.2"/>
		<polygon class="st47" points="970.6 117 939.8 96.7 989 75.9"/>
		<polygon class="st47" points="1023.1 63.2 1037.1 92.7 1010.1 117.3"/>
		<polygon class="st47" points="1023.1 63.2 989 75.9 960.9 53.4"/>
		<polygon class="st45" points="925.8 128.5 939.8 96.7 970.6 117"/>
		<polygon class="st45" points="983.9 150.7 970.6 117 1023.4 150.2"/>
		<polygon class="st49" points="955.6 150.7 970.6 117 925.8 128.5"/>
		<polygon class="st47" points="983.9 150.7 970.6 117 955.6 150.7"/>
		<polygon class="st49" points="970.6 117 1010.1 117.3 1023.8 150.5"/>
		<polygon class="st45" points="1037.1 92.7 1010.1 117.3 1023.8 150.5"/>
		<polygon class="st45" points="1033.8 175.9 1023.8 150.5 1075.1 176.2"/>
		<polygon class="st49" points="1054 129.5 1023.8 150.5 1037.1 92.7"/>
		<polygon class="st47" points="1075.1 176.2 1054 129.5 1023.8 150.5"/>
		<polygon class="st47" points="955.6 150.7 904 175 925.8 128.5"/>
		<polygon class="st45" points="945.1 174.9 904 175 955.8 150.8"/>
	</g>
</svg>

            
          
!
            
              body{
  margin: 0;
  overflow: hidden;
}
.canada{
  display: none;
}
            
          
!
            
              console.clear();

var ww = window.innerWidth,
  wh = window.innerHeight;

var renderer = new THREE.WebGLRenderer({
  canvas: document.querySelector("canvas")
});
renderer.setSize(ww, wh);
renderer.setClearColor(0x9eecff);

var scene = new THREE.Scene();

var camera = new THREE.PerspectiveCamera(45, ww / wh, 0.1, 10000);
camera.position.z = 1500;
var controls = new THREE.TrackballControls(camera);

var items = new THREE.Object3D();
scene.add(items);
TweenMax.to(items.rotation, 40, {
  y:Math.PI*2,
  repeat:-1,
  ease: Power0.easeNone
});

var tl = new TimelineMax({repeat:-1, repeatDelay: 2});

var svgs = document.querySelectorAll(".canada g");
svgs.forEach(addSVG);

function addSVG(svg, i) {
  var mat = new THREE.MeshBasicMaterial({
    vertexColors: THREE.FaceColors,
    side: THREE.DoubleSide
  });

  var polygons = svg.querySelectorAll("polygon");
  var z = parseFloat(svg.getAttribute('z')) || 0;
  var geometry = new THREE.Geometry();
  var group = new THREE.Object3D();
  var speed = Math.random() * 2 + 2;
  var isLetter = svg.getAttribute('id').indexOf('letter') === 0;
  items.add(group);
  polygons.forEach(function(polygon, index) {
    if(polygon.getAttribute('z')){
      z = parseFloat(polygon.getAttribute('z'));
    }
    var path = polygon.getAttribute("points");
    path = path.split(" ").map(Number);
    var styles = window.getComputedStyle(polygon);
    var color = new THREE.Color(styles.fill);
    // Check more top & left
    var v1 = new THREE.Vector3(path[0], path[1]);
    var v2 = new THREE.Vector3(path[2], path[3]);
    var v3 = new THREE.Vector3(path[4], path[5]);

    var shape = new THREE.Shape();
    shape.moveTo( v1.x - 1125 * 0.5, -v1.y + 642.9 * 0.5);
    shape.lineTo( v2.x - 1125 * 0.5, -v2.y + 642.9 * 0.5);
    shape.lineTo( v3.x - 1125 * 0.5, -v3.y + 642.9 * 0.5);

    var extrudeSettings = {
      steps: 2,
      amount: 20,
      bevelEnabled: false
    };

    var geomExtrue = new THREE.ExtrudeGeometry( shape, extrudeSettings );
    var material = new THREE.MeshBasicMaterial( { color: color, transparent: true } );
    var mesh = new THREE.Mesh( geomExtrue, material );
    tl.from(mesh.material, speed, {
      opacity: 0,
      delay: i/4
    }, 0);
    mesh.position.z = z*10;
    group.add(mesh);
  });
  
  if(isLetter){
    tl.from(group.scale, 4, {
      x: 0.001,
      y: 0.001,
      z: 0.001,
      ease: Elastic.easeOut.config(1, 0.2),
      delay: (i-10) / 10
    }, 5);
    tl.from(group.rotation, 4, {
      z: Math.PI*0.5,
      y: Math.PI*0.5,
      ease: Elastic.easeOut.config(0.8, 0.2),
      delay: (i-10) / 10
    }, 5);
  } else {
    tl.from(group.position, speed, {
      x: (Math.random()-0.5) * 1000,
      z: (Math.random()-0.5) * 1000,
      ease: Back.easeOut,
      delay: i/4
    }, 0);
    tl.from(group.rotation, speed, {
      x: (Math.random()-0.5) * Math.PI * 4,
      z: (Math.random()-0.5) * Math.PI * 4,
      ease: Back.easeOut,
      delay: i/4
    }, 0);
  }

}

window.addEventListener("resize", onResize);

function onResize() {
  ww = window.innerWidth;
  wh = window.innerHeight;
  camera.aspect = ww / wh;
  camera.updateProjectionMatrix();
  renderer.setSize(ww, wh);
}

function render() {
  controls.update();

  renderer.render(scene, camera);

  requestAnimationFrame(render);
}
requestAnimationFrame(render);

            
          
!
999px
Loading ..................

Console