123

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div class="logo">

 
   
    <svg class="letters" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
	 width="100" height="100"  xml:space="preserve">

<g class="group">
    <g id="c">
        <path d="M82.9,107.9l5.2-2.4c-0.8-1.8-2.2-3.7-4.5-4.8c-1.1,1.5-2.3,3-3.4,4.5C81.4,105.6,82.5,106.7,82.9,107.9z"/>
        <path d="M79,105c0.4,0,0.8,0.1,1.2,0.2c1.1-1.5,2.4-3,3.4-4.5c-1.3-0.6-2.8-1-4.6-1c-2.3,0-4.4,0.6-6.2,1.6l4.3,4.1
            C77.7,105.1,78.3,105,79,105z"/>
        <path d="M77.1,105.3l-4.3-4.1c-2.3,1.4-4,3.6-4.6,6.4l6.4,0C75.1,106.6,76,105.8,77.1,105.3z"/>
        <path d="M74.1,110c0-0.8,0.2-1.6,0.5-2.3l-6.4,0c-0.2,0.8-0.3,1.5-0.3,2.4c0,1.8,0.4,3.4,1.1,4.8l5.4-2.9
            C74.2,111.3,74.1,110.7,74.1,110z"/>
        <path d="M74.5,111.9l-5.4,2.9c0.7,1.4,1.7,2.6,3,3.5l4.2-4C75.5,113.7,74.8,112.9,74.5,111.9z"/>
        <path d="M80.2,114.8c-0.4,0.1-0.8,0.2-1.2,0.2c-1,0-1.9-0.3-2.6-0.7l-4.2,4c1.5,1,3.2,1.7,5.2,2l4.1-4.6L80.2,114.8z"/>
        <path d="M85.4,118.1l-4-2.5l-4.1,4.6c0.5,0.1,1.1,0.1,1.7,0.1C81.8,120.3,83.9,119.4,85.4,118.1z"/>
        <path d="M82.9,112.1c-0.4,1.2-1.4,2.3-2.7,2.7l1.3,0.8l2.6-2.9L82.9,112.1z"/>
        <path d="M84.1,112.7l-2.6,2.9l4,2.5c1.3-1.1,2.1-2.4,2.6-3.6L84.1,112.7z"/>
    </g>
    <g id="a1">
        <polygon points="104.9,100 101,102.1 104.9,100 99.2,100 98.6,101.4 108.5,104.5 106.8,100 	"/>
        <polygon points="111.4,112.4 104.6,111.3 105,112.4 102.8,112.4 102.7,117.7 106.6,117.7 107,119 112.4,115.2 	"/>
        <polygon points="101.9,109.5 96.8,106.3 95.1,111 101.4,111.2 	"/>
        <polygon points="101.3,112.4 97.2,116 101.3,112.4 101,112.4 101.4,111.2 95.1,111 93.9,114.2 99.5,117.7 102.7,117.7 102.8,112.4 
                "/>
        <polygon points="91.8,120 98.7,120 99.4,117.7 99.5,117.7 93.9,114.2 	"/>
        <polygon points="114.2,120 112.4,115.2 107,119 107.3,120 	"/>
        <polygon points="108.7,105.2 103.5,107.6 104.6,111.3 111.4,112.4 	"/>
        <polygon points="103,105.9 103.5,107.6 108.7,105.2 108.5,104.5 98.6,101.4 96.8,106.3 101.9,109.5 	"/>
    </g>
    <g id="s">
        <path d="M123.6,100.4c-2,0.8-3.2,2.2-3.8,3.8l5.9,1c0.2-0.3,0.6-0.5,1.4-0.5c0.1,0,0.2,0,0.4,0l0-0.1L123.6,100.4z"/>
        <path d="M127.6,104.7L127.6,104.7C127.6,104.8,127.6,104.8,127.6,104.7L127.6,104.7z"/>
        <path d="M127.8,99.7c-1.6,0-3,0.3-4.2,0.8l3.9,4.2l2.1-4.9C129.1,99.7,128.4,99.7,127.8,99.7z"/>
        <path d="M132.2,100.3c-0.8-0.3-1.7-0.4-2.6-0.5l-2.1,4.9l0.1,0.1c1.8,0.1,3.8,0.7,5.4,1.9L132.2,100.3z"/>
        <path d="M136.3,102.5c-1.2-1-2.6-1.7-4.1-2.1l0.8,6.4c0,0,0,0,0,0L136.3,102.5z"/>
        <path d="M125.7,105.7c0-0.1,0-0.3,0.1-0.4l-5.9-1c-0.2,0.6-0.4,1.3-0.4,2c0,1.8,0.6,3.1,1.5,4.1l6.1-3.8
            C126.2,106.3,125.7,106.1,125.7,105.7z"/>
        <path d="M130.4,113.7c0.2,0.1,0.2,0.3,0.2,0.4c0,0.3-0.2,0.5-0.4,0.7l5.4,2.4c0.7-1,1.1-2.3,1.1-3.8c0-0.7-0.1-1.2-0.3-1.8
            L130.4,113.7z"/>
        <path d="M136.5,111.6c-0.9-2.9-3.9-3.9-6.5-4.5l-0.3,6.3c0.3,0.1,0.5,0.2,0.7,0.3L136.5,111.6z"/>
        <path d="M127.1,106.6l-6.1,3.8c2.4,2.4,6.7,2.5,8.7,3l0.3-6.3C128.9,106.9,127.9,106.7,127.1,106.6z"/>
        <path d="M122,112.7l-3.1,4.5c1.9,1.7,4.4,2.9,7.9,3.1L122,112.7C122,112.7,122,112.7,122,112.7z"/>
        <path d="M122,112.7l4.7,7.6c0.1,0,0.2,0,0.2,0l0.1-5.2C125,114.8,123.3,113.9,122,112.7z"/>
        <path d="M130.2,114.9c-0.4,0.3-1.1,0.4-1.8,0.4c-0.5,0-0.9,0-1.3-0.1l-0.1,5.2c0.4,0,0.7,0,1.1,0c3.5,0,6.1-1.1,7.5-3.1
            L130.2,114.9z"/>
    </g>
    <g id="p">
        <polygon points="149.9,117.3 149.9,114.6 143.8,114.9 	"/>
        <path d="M154.5,100h-8.4l5.8,5.3h1.8c0.3,0,0.7,0.1,0.9,0.2l1.3-5.4C155.4,100,155,100,154.5,100z"/>
        <polygon points="151.9,105.3 146.1,100 143.8,100 143.8,103 150,105.3 	"/>
        <polygon points="149.9,105.3 150,105.3 143.8,103 143.8,112.5 149.9,108.3 	"/>
        <path d="M153.8,108.4C153.7,108.4,153.7,108.4,153.8,108.4l-3.9,0v-0.1l-6.1,4.2v2.4l0,0l6-0.2v-0.9h4.2L153.8,108.4z"/>
        <path d="M158.2,100.8c-0.7-0.3-1.4-0.6-2.3-0.7l-1.3,5.4c0.1,0,0.1,0,0.2,0.1L158.2,100.8z"/>
        <path d="M158.2,100.8l-3.4,4.7c0.4,0.3,0.7,0.7,0.7,1.3c0,0.2,0,0.4-0.1,0.6l5.3,3c0.6-1.1,0.9-2.3,0.9-3.6
            C161.7,104.3,160.5,102,158.2,100.8z"/>
        <path d="M155.4,107.5c-0.2,0.6-0.9,0.9-1.7,1l0.3,5.3h0.4c3,0,5.1-1.3,6.3-3.2L155.4,107.5z"/>
        <polygon points="143.8,114.8 143.8,114.9 143.8,114.9 	"/>
        <polygon points="143.8,114.9 143.8,120 149.9,120 149.9,117.3 143.8,114.9 	"/>
    </g>
    <g id="e">
        <polygon points="176,105.3 176.4,105.3 169.9,100.1 169.9,110.2 176,107.3 	"/>
        <polygon points="178.1,107.3 175.8,112.6 178.1,107.3 176,107.3 176,107.3 169.9,110.2 169.9,113.3 176,114 176,112.5 178.1,112.5 
            178.1,107.3 	"/>
        <polygon points="184.9,107.3 180.1,107.3 184.9,112.5 	"/>
        <polygon points="180.1,107.3 178.1,107.3 178.1,112.5 184.9,112.5 184.9,112.5 	"/>
        <polygon points="177.4,114.7 176,114.7 170,120 176.8,120 	"/>
        <polygon points="176,114.7 176,114 169.9,113.3 169.9,120 170,120 176,114.7 	"/>
        <polygon points="178.3,114.7 177.4,114.7 176.8,120 182.6,120 182.6,120 	"/>
        <polygon points="185.1,114.7 178.3,114.7 182.6,120 185.1,114.9 	"/>
        <polygon points="182.6,120 182.7,120 182.6,120 	"/>
        <polygon points="185.1,114.9 182.6,120 182.7,120 185.1,120 	"/>
        <polygon points="184.8,100 181.5,100 178.1,105.3 180.8,105.3 	"/>
        <polygon points="177.5,100 178,105.3 178.1,105.3 181.5,100 	"/>
        <polygon points="184.8,100 180.8,105.3 185.1,105.3 185.1,100 	"/>
        <polygon points="169.9,100 169.9,100.1 176.4,105.3 178,105.3 177.5,100 	"/>
    </g>
    <g id="r">
        <polygon points="193.4,120 197.9,120 193.4,114.5 	"/>
        <polygon points="193.4,114.5 197.9,120 199.4,120 199.4,117.5 193.4,113 	"/>
        <polygon points="193.4,113 199.4,117.5 199.4,113.9 193.4,112.3 	"/>
        <path d="M203.1,108.4h-3.7v-0.9l-6.1,3.7v1l6.1,1.6v-0.2h2.2l0.3,0.7l5.8-1.5c0.6-0.3,1.2-0.7,1.7-1.3l-5.7-3.3
            C203.6,108.4,203.4,108.4,203.1,108.4z"/>
        <polygon points="193.4,100 193.4,111.2 199.4,107.5 199.4,105.3 200,105.3 193.8,100 	"/>
        <polygon points="193.8,100 200,105.3 200.1,105.3 199.9,100 	"/>
        <path d="M207.5,100.7c-1-0.4-2.1-0.7-3.4-0.7h-4.1l4.3,5.5c0.2,0.1,0.3,0.2,0.4,0.3L207.5,100.7z"/>
        <path d="M199.9,100l0.2,5.3h3c0.4,0,0.8,0.1,1.1,0.2L199.9,100L199.9,100z"/>
        <path d="M207.5,100.7l-2.8,5.1c0.2,0.2,0.4,0.5,0.4,0.9l6-1.3C210.7,103.3,209.5,101.6,207.5,100.7z"/>
        <path d="M211.1,105.3l-6,1.3c0,0.1,0,0.1,0,0.2c0,0.9-0.6,1.3-1.3,1.5l5.7,3.3c1-1,1.8-2.6,1.8-4.8
            C211.3,106.3,211.2,105.8,211.1,105.3z"/>
        <path d="M207.7,112.9C207.7,112.9,207.7,112.9,207.7,112.9l-5.7,1.5l2.5,5.6h0.5l4.4-4L207.7,112.9z"/>
        <polygon points="209.3,116 204.9,120 211.3,120 	"/>
    </g>
    <g id="b">
        <polygon points="246.9,100 246.9,100.4 257,105 257.8,100 	"/>
        <path d="M259,100h-1.2l-0.8,5l0.1,0.1h0.5c0,0,0,0,0,0l4.5-3.7l0.4-0.5C261.6,100.3,260.5,100,259,100z"/>
        <path d="M262.5,100.9l-0.4,0.5l0.5-0.4C262.6,100.9,262.5,100.9,262.5,100.9z"/>
        <path d="M257.6,105c0.5,0,0.9,0.3,1,0.6l3.4-4.4L257.6,105z"/>
        <path d="M262.6,100.9l-0.5,0.4l-3.4,4.4c0,0,0,0,0,0.1l5.3,2.4c0.6-0.8,1-1.8,1-3C265,103.6,264.2,101.9,262.6,100.9z"/>
        <polygon points="257.1,105 257,105 257,105 	"/>
        <polygon points="246.9,100.4 246.9,105.8 252.9,106.5 252.9,105 257,105 257,105 	"/>
        <polygon points="252.9,106.5 246.9,105.8 246.9,109.8 252.9,106.9 	"/>
        <polygon points="252.9,112.4 254.7,112.4 253,107.4 252.9,107.4 252.9,106.9 246.9,109.8 246.9,112.4 252.9,113.9 	"/>
        <path d="M259.2,113.4l0.1,0.1l5.6-1.1c-0.6-1.5-1.9-2.5-3.4-2.8c1-0.2,1.8-0.7,2.5-1.5l-5.3-2.4c0.1,0.1,0.1,0.3,0.1,0.4
            c0,0.7-0.6,1.2-1.2,1.2H253l1.7,5h3.1c0.3,0,0.6,0.1,0.8,0.2l3-2.9l-3,2.9c0.3,0.2,0.5,0.5,0.6,0.9l0.2,0L259.2,113.4z"/>
        <path d="M265.4,114.6c0-0.8-0.2-1.5-0.4-2.1l-5.6,1.1l3.1,3.6l0,0l0,0l1.2,1.5C264.8,117.6,265.4,116.1,265.4,114.6z"/>
        <polygon points="252.9,115 252.9,113.9 246.9,112.4 246.9,119.2 253.5,115 	"/>
        <polygon points="257.7,120 255.1,115 253.5,115 246.9,119.2 246.9,120 	"/>
        <path d="M262.4,117.1l-3.1-3.6l-0.2,0c0,0.1,0,0.1,0,0.2c0,0.8-0.5,1.3-1.4,1.3h-2.7l2.7,5h0.9L262.4,117.1z"/>
        <path d="M262.4,117.1l-3.8,2.9h0.8c1.8,0,3.2-0.6,4.2-1.4L262.4,117.1z"/>
    </g>
    <g id="a2">
        <polygon points="269.7,120 276.6,120 277,118.8 271.5,115.2 	"/>
        <polygon points="271.5,115.2 277,118.8 277.3,117.7 278.8,117.7 273.9,108.7 	"/>
        <polygon points="274.3,107.8 279.7,109.9 279.8,109.6 277.1,100.1 	"/>
        <polygon points="281.4,100 277.1,100 277.1,100.1 279.8,109.6 280.9,106 	"/>
        <polygon points="281.4,100 280.9,106 280.9,105.9 281.4,107.3 284.6,100 	"/>
        <polygon points="284.7,100 284.6,100 281.4,107.3 282.6,111.2 287.5,107.5 	"/>
        <polygon points="287.5,107.5 282.6,111.2 282.6,111.3 289.3,112.2 	"/>
        <polygon points="292.1,120 289.3,112.2 282.6,111.3 282.9,112.4 292.1,120 	"/>
        <polygon points="282.9,112.4 282.9,112.4 279,112.4 279.7,109.9 274.3,107.8 273.9,108.7 278.8,117.7 282,117.7 282.8,112.5 
            282,117.7 284.5,117.7 285.3,120 292.1,120 	"/>
    </g>
    <g id="w">
        <polygon points="299.2,113.2 301.2,120 301.7,120 304.7,111.8 303.4,105.6 	"/>
        <polygon points="305.1,110.9 304.8,112.2 304.7,111.8 301.7,120 304.1,120 308.1,117.4 308.6,115.5 	"/>
        <polygon points="304.1,120 307.5,120 308.1,117.4 	"/>
        <polygon points="305.1,110.9 308.6,115.5 309,113.3 305.2,110.4 	"/>
        <polygon points="312.4,100 310.7,100 307.3,102.1 306.9,103.6 313.5,104.5 	"/>
        <polygon points="313.5,104.5 306.9,103.6 305.4,109.7 310.1,108.7 305.4,109.7 305.2,110.4 309,113.3 310.1,108.7 311,112.6 
            313.6,105 	"/>
        <polygon points="307.8,100 307.3,102.1 310.7,100 	"/>
        <polygon points="317.5,102.7 322.6,106.4 322.8,106.4 322.6,106.4 322.7,106.4 322.8,106.3 322.7,106.4 322.9,106.5 324.7,100.2 	
            "/>
        <polygon points="317.5,102.7 317.4,102.7 316.8,105.6 322.6,106.4 	"/>
        <polygon points="322.7,106.4 319.5,110.6 322.7,106.4 322.6,106.4 316.8,105.6 316.2,108.6 321.3,112.1 322.9,106.5 	"/>
        <polygon points="316.2,108.6 316.1,108.8 320.8,114 321.3,112.1 	"/>
        <polygon points="316.1,108.8 315.5,111.8 319.2,119.4 320.8,114 	"/>
        <polygon points="315.4,112.2 315.1,110.9 314.9,110.5 315.1,110.9 313.6,105 311,112.6 311.7,115.7 319.1,119.6 319.2,119.4 
            315.5,111.8 	"/>
        <polygon points="312.7,120 319,120 319.1,119.6 311.7,115.7 	"/>
        <polygon points="324.7,100.2 324.8,100 318,100 317.4,102.6 317.5,102.7 	"/>
        <polygon points="317.5,102.7 317.4,102.6 317.4,102.7 	"/>
        <polygon points="302.2,100 301.8,100 297.7,107.8 297.8,108.2 303.3,105.6 297.8,108.2 299.2,113.2 303.4,105.6 	"/>
        <polygon points="301.8,100 295.4,100 297.7,107.8 	"/>
    </g>
    <g id="o">
        <path d="M343.9,100.6l-1.9,5.3c0.5,0.4,0.9,0.8,1.2,1.3l3.6-4.8C346,101.6,345,101,343.9,100.6z"/>
        <path d="M344,111.1L344,111.1c-0.3,1.4-1.1,2.5-2.2,3.2l0,0.1l5.5,2.8c0.8-0.8,1.4-1.7,1.9-2.7L344,111.1z"/>
        <path d="M350.2,110c0-0.6-0.1-1.1-0.1-1.6l-6.1,2.7l5.2,3.4C349.9,113.1,350.2,111.6,350.2,110z"/>
        <path d="M346.9,102.4l-3.6,4.8c0.5,0.8,0.8,1.8,0.8,2.8c0,0.4,0,0.7-0.1,1.1l0,0l0,0l0,0l6.1-2.7
            C349.7,105.9,348.6,103.9,346.9,102.4z"/>
        <path d="M344.1,119.4c1.2-0.5,2.3-1.3,3.2-2.2l-5.5-2.8L344.1,119.4z"/>
        <path d="M341.8,114.3C341.8,114.3,341.8,114.3,341.8,114.3L341.8,114.3L341.8,114.3z"/>
        <path d="M330.5,103.6c-1.3,1.6-2.1,3.7-2.2,6.1l6.2,0.9c0-0.2,0-0.4,0-0.6c0-1.2,0.4-2.3,1-3.2L330.5,103.6z"/>
        <path d="M330.5,103.6l5,3.3c0.2-0.2,0.4-0.4,0.6-0.6L330.5,103.6C330.5,103.5,330.5,103.6,330.5,103.6z"/>
        <path d="M330.6,103.5l5.5,2.7c0.8-0.8,1.9-1.2,3.2-1.2c0.4,0,0.8,0.1,1.2,0.2l-1.7-5.5C335.4,99.8,332.4,101.2,330.6,103.5z"/>
        <path d="M343.9,100.5c-1.4-0.6-2.9-0.9-4.6-0.9c-0.2,0-0.3,0-0.5,0l1.7,5.5c0,0,0.1,0,0.1,0L343.9,100.5z"/>
        <path d="M343.9,100.5l-3.3,4.6c0.5,0.1,1,0.4,1.5,0.7L343.9,100.5C343.9,100.5,343.9,100.5,343.9,100.5z"/>
        <path d="M334.5,110.6l-6.2-0.9c0,0.1,0,0.2,0,0.3c0,1.4,0.3,2.8,0.7,3.9l5.8-1.9C334.7,111.5,334.6,111.1,334.5,110.6z"/>
        <path d="M334.9,112.1l0.5,7.6l3.3-4.7C336.9,114.8,335.6,113.7,334.9,112.1z"/>
        <path d="M341.9,114.4L341.9,114.4c-0.8,0.4-1.6,0.7-2.6,0.7c-0.2,0-0.3,0-0.5,0l-3.3,4.7l0,0.1c1.2,0.4,2.4,0.6,3.8,0.6
            c1.8,0,3.4-0.4,4.8-1L341.9,114.4z"/>
        <path d="M334.9,112.1c0,0,0-0.1-0.1-0.1l-5.8,1.9c1.1,2.8,3.4,4.9,6.4,5.8l0,0L334.9,112.1z"/>
        <path d="M335.5,119.7L335.5,119.7C335.5,119.8,335.5,119.8,335.5,119.7L335.5,119.7z"/>
    </g>
    <g id="l">
        <polygon points="365.1,114.8 362.7,120 365.9,120 	"/>
        <polygon points="367,114.7 365.1,114.7 365.1,114.8 365.9,120 366.7,120 366.7,119.9 	"/>
        <polygon points="366.7,119.9 366.7,120 366.7,120 	"/>
        <polygon points="369.1,114.7 366.7,119.9 366.7,120 370.9,120 370.9,114.7 	"/>
        <polygon points="367,114.7 366.7,119.9 369.1,114.7 	"/>
        <polygon points="365.1,114.7 365.1,114.7 365.1,114.8 	"/>
        <polygon points="357.2,104.1 361.3,101.8 357.2,100 	"/>
        <polygon points="363.3,100 357.2,100 357.2,100 361.3,101.8 363.3,100.7 	"/>
        <polygon points="363.3,100.7 361.3,101.8 361.4,101.8 361.3,101.8 357.2,104.1 357.2,104.8 363.3,106.4 	"/>
        <polygon points="357.2,104.8 357.2,113.1 363.3,110.1 363.3,106.4 	"/>
        <polygon points="363.3,110.1 357.2,113.1 357.2,113.2 363.3,114.5 	"/>
        <polygon points="357.2,120 362.7,120 357.2,115.3 	"/>
        <polygon points="365.1,114.8 365.1,114.7 363.3,114.7 363.3,114.5 357.2,113.2 357.2,115.3 362.7,120 362.7,120 	"/>
    </g>
</g>




</svg>

 <div class="triggers">
    
    <span data-letter="c"></span>
    <span data-letter="a1"></span>
    <span data-letter="s"></span>
    <span data-letter="p"></span>
    <span data-letter="e"></span>
    <span data-letter="r"></span>
    
      <span data-letter="b"></span>
    <span  data-letter="a2"></span>
    <span data-letter="w"></span>
    <span  data-letter="o"></span>
    <span data-letter="l"></span>

     
     
 </div>   
    
</div>
            
          
!
            
              *{
    box-sizing: border-box;
}

.logo{
    width:100%;
    height:100%;
    position: absolute;
    top:0px;
    left:0;
    padding: 0;
    margin: 0;
   
    -webkit-perspective: 1000;
    perspective: 1000;

    
}


.logo .letters {
    position: absolute;
    width: 500px;
    height: 400px;;
    top:50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    right:0;
    left:0;
    padding: 0;
    margin: 0 auto;
    text-align: center;
    padding-top: 80px;
    
}



.logo .letters g polygon, .letters path {
    fill:#000;
    padding:10px;
    stroke:#000;
    stroke-width:0.2;


}

.logo .triggers{
    width:500px;
    height: 400px;
    position: absolute;
top:50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    right:0;
    left:0;
    padding-top: 80px;
    padding-left: 65px;
    margin: 0 auto;
     
    
}

.triggers span{
    width:23px;
    height: 35px;
    display: block;
    background-color: transparent;
    margin-top:92px;

    float: left;
    margin-right:2px;
}

.triggers span:nth-child(7){
    margin-left: 29px;
}
.triggers span:nth-child(9){
    width:32px;
}


            
          
!
            
              
    $('.triggers span').hover(function() {
        explode($(this).parents('.logo').attr('id'), $(this).data('letter'));

    },function(){
        
         implode($(this).parents('.logo').attr('id'), $(this).data('letter'));
        
    });
    


    
    
    function explode(letterID, letter) {
    $(' .letters g#' + letter).find('path,polygon').each(function() {

        $(this).velocity({
          translateZ:0,
            translateX: random(-80,200),
            translateY: random(-200,180),
          rotateZ:"5deg",
 						opacity:0,
               });
        

        

    });
}
    
    
    
    
    
    function random(min, max) {
    return Math.floor(Math.random() * (max - min + 20) + min);
}
    
 function implode(letterID, letter) {
    $(' .letters g#' + letter).find('path, polygon').velocity({

           translateZ:0,
            translateX: 0,
            translateY:0,
      opacity:1,
      rotateZ:"0deg",
    
    },[ 170, 15]);
};
    

    
    
    
    
  
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console