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.

+ 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.

            
              <div class="wrap">
<div class="wrap_inner">
  <svg xmlns="http://www.w3.org/2000/svg" width="251.7" height="386.5"><path fill="#212120" d="M196.5 123.3c0-38.1-30.9-69.1-69.1-69.1s-69 31-69 69.1v114c0 6.3 4.5 11.4 9.9 11.4h118.4c5.5 0 9.9-5.1 9.9-11.4V133.7c0-1.2-.1-8-.1-10.4z"/><circle fill="#FBE081" cx="125.9" cy="125.8" r="59.8"/><path fill="#212120" d="M69.8 98.5l120.1.1-19.1-22.4-48.6-17.1L86.5 74z"/><path fill="#664A9E" d="M140 278h-28.1c-5.5 0-9.9-4.5-9.9-9.9v-64.2c0-5.5 4.5-9.9 9.9-9.9H140c5.5 0 9.9 4.5 9.9 9.9v64.2c0 5.4-4.5 9.9-9.9 9.9z"/><path fill="#212121" d="M118.4 283.9h-12.5c-2.2 0-4 1.8-4 4v94.3c0 2.2 1.8 4 4 4h12.6c2.2 0 4-1.8 4-4v-94.3c-.1-2.2-1.9-4-4.1-4zM145.2 283.9h-10.6c-2.8 0-5 2.3-5 5v92.3c0 2.8 2.3 5 5 5h10.6c2.8 0 5-2.3 5-5v-92.3c0-2.7-2.2-5-5-5z"/><path fill="none" stroke="#212121" stroke-width="3" stroke-miterlimit="10" d="M102.5 165.7c9.3 5.2 24 9.7 39.6 0"/><circle fill="#FFF" cx="152.2" cy="128.6" r="22.6"/><circle fill="#212120" cx="152.2" cy="129.2" r="19.7"/><g class="bucket"><path fill="none" stroke="#5E4138" stroke-width="5" stroke-miterlimit="10" d="M40.8 201.6c-9.7 0-17.7 7.8-17.7 17.7v35.2h35.3v-35.2c0-9.8-7.8-17.7-17.6-17.7z"/><path fill="#3F2723" d="M65.7 241H15.9c-5.5 0-10 4.5-10 10 0 0-1.3 13.1 0 17.2 2.6 8.4 11.9 25 19.6 29.1 6.8 3.6 24.2 3.7 31 0 7.7-4.1 16.7-20.8 19.2-29.1 1.2-4.1 0-17.2 0-17.2 0-5.5-4.5-10-10-10z"/><circle fill="#FBE081" cx="41" cy="208.4" r="18.6"/></g><circle fill="#FFF" cx="97.8" cy="128.6" r="22.6"/><circle fill="#212120" cx="97.8" cy="129.2" r="19.7"/></svg>
</div>
  <div class="wrap_inner">
    <svg xmlns="http://www.w3.org/2000/svg" width="251.7" height="386.5"><path fill="#E0E1E0" d="M201.6 120.9c0-40.3-33.1-73-73.8-73S54 80.6 54 120.9v180.5c0 6.6 4.8 12.1 10.6 12.1h126.5c5.8 0 10.6-5.4 10.6-12.1V131.9c0-1.2-.1-8.5-.1-11z"/><path fill="#2D67B1" d="M196.8 123.5c0-38.1-30.9-69.1-69.1-69.1s-69 31-69 69.1v114c0 6.3 4.5 11.4 9.9 11.4H187c5.5 0 9.9-5.1 9.9-11.4V133.9c0-1.2-.1-8-.1-10.4z"/><circle fill="#72B3E2" cx="126.2" cy="126" r="59.8"/><path fill="#2D67B1" d="M70.1 98.7l47.4-9 72.7 9.1-19.1-22.4-48.6-17.1-35.7 14.9z"/><path fill="#FAFAFA" d="M140.3 278.2h-28.1c-5.5 0-9.9-4.5-9.9-9.9v-64.2c0-5.5 4.5-9.9 9.9-9.9h28.1c5.5 0 9.9 4.5 9.9 9.9v64.2c0 5.4-4.5 9.9-9.9 9.9z"/><path fill="#212121" d="M118.7 284.1h-12.5c-2.2 0-4 1.8-4 4v94.3c0 2.2 1.8 4 4 4h12.6c2.2 0 4-1.8 4-4v-94.3c-.1-2.2-1.9-4-4.1-4z"/><path fill="#E0E1E0" d="M112.3 373.6c-2.9 0-5.3-2.4-5.3-5.3v-73.2c0-2.9 2.4-5.3 5.3-5.3s5.3 2.4 5.3 5.3v73.1c0 3-2.4 5.4-5.3 5.4z"/><path fill="#72B3E2" d="M145.5 284.1h-10.6c-2.8 0-5 2.3-5 5v92.3c0 2.8 2.3 5 5 5h10.6c2.8 0 5-2.3 5-5v-92.3c0-2.7-2.2-5-5-5z"/><ellipse fill="#2D67B1" cx="95.7" cy="128.8" rx="24.4" ry="24.4"/><ellipse fill="#4890CD" cx="154.6" cy="128.8" rx="24.4" ry="24.4"/><path fill="none" stroke="#B62427" stroke-width="3" stroke-miterlimit="10" d="M102.8 165.9c9.3 5.2 24 9.7 39.6 0"/><circle fill="#4890CD" cx="97.9" cy="128.8" r="22.6"/><circle fill="#FFF" cx="152.5" cy="128.8" r="22.6"/><circle fill="#212120" cx="152.5" cy="129.4" r="19.7"/><path fill="#E0E1E0" d="M118.7 368.9h-12.5c-2.2 0-4 1.8-4 4v9.6c0 2.2 1.8 4 4 4h12.6c2.2 0 4-1.8 4-4v-9.6c-.1-2.2-1.9-4-4.1-4z"/><path fill="#212121" d="M146.5 368.9h-12.6c-2.2 0-4 1.8-4 4v9.6c0 2.2 1.8 4 4 4h12.6c2.2 0 4-1.8 4-4v-9.6c0-2.2-1.8-4-4-4z"/><path fill="none" stroke="#2B67B1" stroke-width="3" stroke-miterlimit="10" d="M152.5 172.4s4.1-12.7 18.3-18.7M98.3 172.4s-4.1-12.7-18.3-18.7"/><path fill="#8BC249" d="M98 92.7c-5.5 0-9.8 4.5-9.8 9.8v23.2c0 5.5 4.5 9.8 9.8 9.8 5.5 0 9.8-4.5 9.8-9.8v-23.1c0-5.4-4.4-9.9-9.8-9.9z"/><path fill="#8BC249" d="M101.3 109.6H95c-5.5 0-9.9-4.5-9.9-9.9v-7.4c0-5.5 4.5-9.9 9.9-9.9h6.3c5.5 0 9.9 4.5 9.9 9.9v7.4c0 5.4-4.5 9.9-9.9 9.9z"/><ellipse fill="#FFF" cx="89.9" cy="93" rx="7" ry="7.5"/><ellipse fill="#212120" cx="89.9" cy="93" rx="5.2" ry="5.6"/><ellipse fill="#FFF" cx="105.8" cy="93" rx="7" ry="7.5"/><ellipse fill="#212120" cx="105.8" cy="93" rx="5.2" ry="5.6"/><path fill="#FFF" d="M91.7 102.1h4.8v6.7h-4.8zM98.7 102.1h4.8v6.7h-4.8z"/><path fill="#E0E1E0" d="M71.3 76.2L97 57.8l29.8-7.7 27.8 6 31.4 24 6.3 11z"/><circle fill="#2D67B1" cx="167" cy="73" r="10"/><circle fill="#2D67B1" cx="142.4" cy="66.2" r="10"/><circle fill="#2D67B1" cx="112.9" cy="64.5" r="10"/><circle fill="#2D67B1" cx="86.6" cy="70.1" r="10"/><path fill="#FAFAFA" d="M89.2 364.5h16l19.5-99-22.4 1.5z"/><path fill="#FAFAFA" d="M150.2 268.3l13.5 96h-35.9L114 286l8.8-21.5z"/><path fill="#212121" d="M117.3 241.2h-9.5c-2.8 0-5-2.3-5-5v-12c0-2.8 2.3-5 5-5h9.5c2.8 0 5 2.3 5 5v12c0 2.8-2.3 5-5 5z"/><path fill="#E0E1E0" d="M102.8 222.2h19.5v6.3h-19.5zM102.8 231.2h19.5v6.3h-19.5z"/><g class="bucket"><path fill="#FFF" d="M61.2 257.2H20.9v-37.7c0-11.1 9.1-20.2 20.2-20.2s20.1 9.1 20.1 20.2v37.7zm-35.3-5h30.3v-32.7c0-8.4-6.8-15.2-15.1-15.2-8.4 0-15.2 6.8-15.2 15.2v32.7z"/><path fill="#FFF" d="M66 241.2H16.2c-5.5 0-10 4.5-10 10v17.2c0 5.5 4.5 10 10 10H66c5.5 0 10-4.5 10-10v-17.2c0-5.5-4.5-10-10-10z"/><circle fill="#212121" cx="25.2" cy="261.5" r="12"/><circle fill="#FFF" cx="26.7" cy="261.1" r="7.8"/><circle fill="#212121" cx="27.2" cy="261.9" r="2.1"/><circle fill="#212121" cx="56.2" cy="261.5" r="12"/><path fill="#FFF" d="M56.8 297.5h-31c-2.2 0-4-1.8-4-4v-15.3c0-2.2 1.8-4 4-4h31c2.2 0 4 1.8 4 4v15.2c0 2.2-1.8 4.1-4 4.1z"/><circle fill="#72B3E2" cx="41.3" cy="208.6" r="18.6"/></g></svg>
  </div>
  <div class="wrap_inner">
    <svg xmlns="http://www.w3.org/2000/svg" width="251.7" height="386.5"><path fill="#B72327" d="M186.7 233.4H68.4c-5.5 0-9.9-4.5-9.9-9.9v-90.1c0-5.5 4.5-9.9 9.9-9.9h118.4c5.5 0 9.9 4.5 9.9 9.9v90.1c0 5.4-4.5 9.9-10 9.9z"/><circle fill="#B72327" cx="127.5" cy="123.5" r="69.1"/><circle fill="#72B3E2" cx="125.9" cy="126" r="59.8"/><path fill="#B72327" d="M69.9 98.7l120 .1-19-22.5-48.7-17-35.7 14.9z"/><path fill="#4FAF4C" d="M140 278.2h-28.1c-5.5 0-9.9-4.5-9.9-9.9V204c0-5.5 4.5-9.9 9.9-9.9H140c5.5 0 9.9 4.5 9.9 9.9v64.2c0 5.5-4.4 10-9.9 10z"/><path fill="#72B3E2" d="M118.5 284.1H106c-2.2 0-4 1.8-4 4v94.3c0 2.2 1.8 4 4 4h12.6c2.2 0 4-1.8 4-4v-94.3c-.2-2.2-1.9-4-4.1-4zM145.3 284.1h-10.6c-2.8 0-5 2.3-5 5v92.3c0 2.8 2.3 5 5 5h10.6c2.8 0 5-2.3 5-5v-92.3c-.1-2.7-2.3-5-5-5z"/><path fill="none" stroke="#212121" stroke-width="3" stroke-miterlimit="10" d="M92.5 158.5s29.5 29.5 58.8 0M91.3 165l8.7-7.7M99 169.5l7.9-9.2M147.8 167.5l-6.2-7.2M153.1 164l-6.2-6.7M77.9 151.3s9.8-35.5 39.5-47.1M109.5 101.6l5.3 8M82.8 151.3l-7.7-6.2"/><circle fill="#FFF" cx="97.6" cy="128.7" r="22.6"/><circle fill="#212120" cx="97.6" cy="129.3" r="19.7"/><circle fill="#FFF" cx="152.2" cy="128.7" r="22.6"/><circle fill="#212120" cx="152.2" cy="129.3" r="19.7"/><g class="bucket"><path fill="#8E6F64" d="M72.5 241.9l-32.7 3.7-30.7-3.7c15.1 21 11.9 46.5 11.9 46.5l18.9 11.3 20.7-11.3c0 .1-3-25.4 11.9-46.5z"/><path fill="none" stroke="#8E6F64" stroke-width="5" stroke-miterlimit="10" d="M40.9 201.8c-9.7 0-17.7 7.8-17.7 17.7v35.2h35.2v-35.3c0-9.7-7.8-17.6-17.5-17.6z"/><circle fill="#72B3E2" cx="41.1" cy="208.6" r="18.6"/></g><path fill="#F89921" d="M120.2 238.5h-8.3c-5.5 0-9.9-4.5-9.9-9.9V204c0-5.5 4.5-9.9 9.9-9.9h18.2v34.4c0 5.5-4.5 10-9.9 10z"/><path fill="#EC417B" d="M140 278.2h-8.2c-5.5 0-9.9-4.5-9.9-9.9V204c0-5.5 4.5-9.9 9.9-9.9h8.2c5.5 0 9.9 4.5 9.9 9.9v64.2c0 5.5-4.4 10-9.9 10z"/><path fill="none" stroke="#212121" stroke-width="3" stroke-miterlimit="10" d="M120.3 201.2h5.6M119.4 211.6h7.1M120.3 219.3h5M119.4 228.9h6.5M107.9 234.7l-3 3.8M114.6 236.2v4.2M121.9 274.2l4.6-2M119.4 261.7h4.7M119.4 247.9l5.9 1M102 330.6l20.4 15.8M108.5 330.6L104 337M117 337l-4.8 5.7M102 320.6l20.4-14.7M116.4 305.9l3.5 6.6M106.2 310.9l4.7 8M129.8 325.9l20.4-7M134.8 319.6l1.6 8.1M144.3 317l1.9 6.6"/><path fill="#FFF" d="M118.8 375.6h-13.1c-2.1 0-3.8-1.7-3.8-3.8v-16.2c0-2.1 1.7-3.8 3.8-3.8h13.1c2.1 0 3.7 1.7 3.7 3.8v16.3c-.1 2-1.7 3.7-3.7 3.7z"/><path fill="#212121" d="M118.5 368.9H106c-2.2 0-4 1.8-4 4v9.6c0 2.2 1.8 4 4 4h12.6c2.2 0 4-1.8 4-4v-9.6c-.2-2.3-1.9-4-4.1-4zM102 358.5h20.5v5.8H102z"/><path fill="#FFF" d="M146.6 375.6h-13.1c-2.1 0-3.8-1.7-3.8-3.8v-16.2c0-2.1 1.7-3.8 3.8-3.8h13.1c2.1 0 3.8 1.7 3.8 3.8v16.3c-.2 2-1.9 3.7-3.8 3.7z"/><path fill="#212121" d="M146.3 368.9h-12.6c-2.2 0-4 1.8-4 4v9.6c0 2.2 1.8 4 4 4h12.6c2.2 0 4-1.8 4-4v-9.6c-.1-2.3-1.9-4-4-4zM129.8 358.5h20.5v5.8h-20.5z"/></svg>
  </div>
  <div class="wrap_inner">
    <svg xmlns="http://www.w3.org/2000/svg" width="251.7" height="386.5"><path fill="#F9BF2C" d="M186.8 204.4H68.5c-5.5 0-9.9-4.5-9.9-9.9v-70.1c0-5.5 138.2-5.4 138.2 0v70.1c0 5.4-4.5 9.9-10 9.9z"/><circle fill="#F9BF2C" cx="127.6" cy="123.5" r="69.1"/><circle fill="#FACDD2" cx="126" cy="126" r="59.8"/><path fill="#F9BF2C" d="M61.3 113.6l113.6-31-12.2-12.4-40.4-10.9-35.7 14.9z"/><path fill="#FACDD2" d="M118.6 284.1h-12.5c-2.2 0-4 1.8-4 4v94.3c0 2.2 1.8 4 4 4h12.6c2.2 0 4-1.8 4-4v-94.3c-.2-2.2-1.9-4-4.1-4zM145.4 284.1h-10.6c-2.8 0-5 2.3-5 5v92.3c0 2.8 2.3 5 5 5h10.6c2.8 0 5-2.3 5-5v-92.3c-.1-2.7-2.3-5-5-5z"/><path fill="#212121" d="M123.1 173.1c-17.8 0-31-13-31.6-13.6l2.1-2.1c.1.1 12.9 12.7 29.5 12.7h.1c9.7 0 18.8-4.3 27.1-12.7l2.1 2.1c-8.9 9.1-18.7 13.6-29.3 13.6.1 0 .1 0 0 0z"/><circle fill="#FFF" cx="97.7" cy="128.7" r="22.6"/><circle fill="#212120" cx="97.7" cy="129.3" r="19.7"/><circle fill="#FFF" cx="152.3" cy="128.7" r="22.6"/><circle fill="#212120" cx="152.3" cy="129.3" r="19.7"/><path fill="#212121" d="M118.6 368.9h-12.5c-2.2 0-4 1.8-4 4v9.6c0 2.2 1.8 4 4 4h12.6c2.2 0 4-1.8 4-4v-9.6c-.2-2.3-1.9-4-4.1-4zM102.1 361.5h20.5v5.8h-20.5zM146.4 368.9h-12.6c-2.2 0-4 1.8-4 4v9.6c0 2.2 1.8 4 4 4h12.6c2.2 0 4-1.8 4-4v-9.6c-.1-2.3-1.9-4-4-4zM129.9 361.5h20.5v5.8h-20.5z"/><path fill="#84D2F6" d="M163.3 334.2l-13.5-66V204c0-5.4-4.4-9.9-9.9-9.9h-28.1c-5.4 0-9.9 4.4-9.9 9.9v62.9l-13.1 67.5h16l58.5-.2z"/><path fill="#44B3E6" d="M101.9 256.2h47.9v10.7h-47.9zM114.5 210.6c-1.4 0-2.5-.4-3.4-1.3-1.3-1.3-1.6-3.2-1-5.4.6-1.9 1.8-4 3.5-5.7 2.4-2.4 5.3-3.8 7.8-3.8 1.4 0 2.5.4 3.4 1.3 1.3 1.3 1.6 3.2 1 5.4-.6 1.9-1.8 4-3.5 5.7-2.4 2.4-5.3 3.8-7.8 3.8zm7-13.2c-1.6 0-3.9 1.2-5.7 3-1.3 1.3-2.4 2.9-2.8 4.4-.3 1.1-.2 2.1.2 2.5.3.3.7.4 1.2.4 1.6 0 3.9-1.2 5.7-3 1.3-1.3 2.4-2.9 2.8-4.4.3-1.1.2-2.1-.2-2.5-.3-.3-.7-.4-1.2-.4z"/><path fill="#44B3E6" d="M134.4 210.6c-2.5 0-5.4-1.4-7.8-3.8-1.7-1.7-3-3.7-3.5-5.7-.6-2.2-.3-4.2 1-5.4.8-.8 2-1.3 3.4-1.3 2.5 0 5.4 1.4 7.8 3.8 1.7 1.7 3 3.7 3.5 5.7.6 2.2.3 4.2-1 5.4-.8.9-2 1.3-3.4 1.3zm-6.9-13.2c-.6 0-1 .1-1.2.4-.4.4-.5 1.4-.2 2.5.4 1.4 1.4 3 2.8 4.4 1.8 1.8 4 3 5.7 3 .6 0 1-.1 1.2-.4.4-.4.5-1.4.2-2.5-.4-1.4-1.4-3-2.8-4.4-1.9-1.9-4.1-3-5.7-3z"/><path fill="#212121" d="M102.1 354.5h20.5v5.8h-20.5zM129.9 354.5h20.5v5.8h-20.5z"/><g class="bucket"><path fill="#434343" d="M72.6 299.7H9.2l5-57.8h53.4z"/><path fill="#434343" d="M61 257.2H20.8v-37.7c0-11.1 9.1-20.2 20.2-20.2 11 0 20 9 20 20.1v37.8zm-35.2-5H56v-32.8c0-8.3-6.7-15.1-15-15.1-8.4 0-15.2 6.8-15.2 15.2v32.7z"/><circle fill="#FACDD2" cx="41.2" cy="208.6" r="18.6"/><g><path fill="#212121" d="M24.3 280.3v-4c1.4.9 3 1.3 4.6 1.3 1.2 0 2.2-.3 2.9-.9.7-.6 1-1.4 1-2.4 0-2.1-1.5-3.1-4.4-3.1-1 0-2.1.1-3.5.3v-11.7h11.6v3.8h-7.7v4.2c.6-.1 1.2-.1 1.7-.1 2.2 0 3.8.6 5.1 1.7s1.8 2.7 1.8 4.6c0 2.1-.7 3.9-2.2 5.2-1.5 1.3-3.4 2-5.9 2-1.9 0-3.6-.3-5-.9z"/></g><g fill="#212121"><path d="M49.7 280.8H46l-3.2-5v5h-3.1V266h3.1v9.4l3-4.6h3.7l-3.6 4.7 3.8 5.3zM60.4 279.7c0 1.9-.5 3.3-1.6 4.3s-2.6 1.5-4.7 1.5c-1.3 0-2.4-.2-3.2-.6v-2.6c1 .6 2.1.9 3.1.9s1.8-.3 2.4-.8.9-1.3.9-2.2v-.8c-.7 1.1-1.7 1.7-3.1 1.7-1.3 0-2.3-.4-3-1.3s-1.1-2.1-1.1-3.6c0-1.7.4-3 1.3-4s1.9-1.5 3.3-1.5c1.2 0 2.1.5 2.7 1.4v-1.2h3.1v8.8zm-3.1-3.7v-.8c0-.6-.2-1.2-.6-1.6s-.9-.7-1.5-.7c-.7 0-1.2.3-1.6.8S53 275 53 276c0 .8.2 1.5.6 2s.9.7 1.5.7 1.2-.2 1.5-.7.7-1.2.7-2z"/></g></g></svg>
  </div>
  <div class="wrap_inner">
    <svg xmlns="http://www.w3.org/2000/svg" width="251.7" height="386.5"><path fill="#FFCB28" d="M140.7 47h-37l-10-47 16 20 12.5-20 12.2 20 16.3-20z"/><circle fill="#BE3A26" cx="82.6" cy="76.9" r="52.3"/><circle fill="#BE3A26" cx="162.6" cy="76.9" r="52.3"/><circle fill="#FAFBFB" cx="125.7" cy="125.8" r="59.8"/><path fill="#BE3A26" d="M69.3 82.1l56.4 8 63.6-7.9-19-22.5-48.7-17-35.7 14.8z"/><path fill="#5D4137" d="M118.3 284h-12.5c-2.2 0-4 1.8-4 4v94.3c0 2.2 1.8 4 4 4h12.6c2.2 0 4-1.8 4-4V288c-.2-2.2-1.9-4-4.1-4zM145.1 284h-10.6c-2.8 0-5 2.3-5 5v92.3c0 2.8 2.3 5 5 5h10.6c2.8 0 5-2.3 5-5V289c-.1-2.7-2.3-5-5-5z"/><path fill="none" stroke="#212121" stroke-width="3" stroke-miterlimit="10" d="M92.3 158.4s29.5 29.5 58.8 0"/><path fill="#44B3E6" d="M100.8 95.1H94c-10.6 0-19.2 8.7-19.2 19.2 0 10.6.2 19.2.2 19.2h44.7s.2-8.7.2-19.2c.1-10.6-8.6-19.2-19.1-19.2z"/><circle fill="#FFF" stroke="#9D9D9D" stroke-miterlimit="10" cx="97.4" cy="128.6" r="22.6"/><circle fill="#212120" cx="97.4" cy="129.1" r="19.7"/><path fill="#44B3E6" d="M155.8 95.1H149c-10.6 0-19.2 8.7-19.2 19.2 0 10.6.2 19.2.2 19.2h44.7s.2-8.7.2-19.2c.1-10.6-8.6-19.2-19.1-19.2z"/><circle fill="#FFF" stroke="#9D9D9D" stroke-miterlimit="10" cx="152" cy="128.6" r="22.6"/><circle fill="#212120" cx="152" cy="129.1" r="19.7"/><path fill="#212121" d="M101.8 358.4h20.5v5.8h-20.5zM129.6 358.4h20.5v5.8h-20.5z"/><path fill="#BE3A26" d="M132.8 167.9c0-2.8-2.3-5.1-5.1-5.1-1.4 0-2.7.6-3.6 1.5-.9-1.2-2.4-2-4-2-2.8 0-5.1 2.3-5.1 5.1 0 .3 0 .5.1.8 0 .2-.1.3-.1.5 0 4.6 4 8.3 8.9 8.3s8.9-3.7 8.9-8.3v-.4-.4z"/><path fill="#F9BF2C" d="M163.5 364.4l-13.5-96v-64.2c0-5.4-4.4-9.9-9.9-9.9H112c-5.4 0-9.9 4.4-9.9 9.9v62.9L89 364.6h16l55.7-.2h2.8z"/><path fill="#212121" d="M140 278.4h-28.1c-5.5 0-9.9-4.5-9.9-9.9v-64.3c0-5.5 4.5-9.9 9.9-9.9H140c5.5 0 9.9 4.5 9.9 9.9v64.2c0 5.5-4.4 10-9.9 10z"/><path fill="#BE3A26" d="M128.8 265h-6.4c-5.5 0-10 4.5-10 10l-10 89.6h47.4l-11-89.6c0-5.5-4.5-10-10-10z"/><path fill="#F9BF2C" d="M130.8 271.6h-9.9c-4.9-1.3-5-8.7-5-8.7l-5-38.4c0-4.8 4.5-8.7 10-8.7h9.9c5.5 0 10 3.9 10 8.7l-5 38.4s-.5 7.3-5 8.7z"/><g class="bucket"><path fill="#BE3A26" d="M60.7 257H20.4v-37.7c0-11.1 9.1-20.2 20.2-20.2s20.1 9.1 20.1 20.2V257zm-35.3-5h30.3v-32.7c0-8.4-6.8-15.2-15.1-15.2-8.4 0-15.2 6.8-15.2 15.2V252z"/><path fill="#BE3A26" d="M80.3 251.3c0-11.1-9-20.2-20.2-20.2-10.2 0-18.6 3.6-20 13.5-1.3-9.9-9.7-13.5-20-13.5-11.1 0-20.2 9-20.2 20.2 0 0-3.6 26.1 39.9 56.5v.3c.1 0 .1-.1.2-.1s.1.1.2.1v-.3c43.7-30.4 40.1-56.5 40.1-56.5z"/><path fill="#212121" d="M24.7 249.3h31v24h-31z"/><circle fill="#212121" cx="24.7" cy="261.4" r="12"/><circle fill="#F9BF2C" cx="26.2" cy="261" r="7.8"/><circle fill="#212121" cx="55.7" cy="261.4" r="12"/><circle fill="#F9BF2C" cx="54.2" cy="261" r="7.8"/><circle fill="#FAFBFB" cx="40.8" cy="208.4" r="18.6"/></g></svg>
  </div>
  <button class="switch">Click me!!</button>
</div>
            
          
!
            
              body {
  position: relative;
  width: 100vw;
  background: #B0BEC5;
  text-align: center;
}

.wrap {
  position: relative;
  width: 600px;
  height: 600px;
  margin: 50px auto;
  border-radius: 50%;
}
svg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 252px;
  height: 388px;
  margin: auto;
  overflow: visible;
}

.wrap_inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  transition: all .5s;

  &:nth-child(2) {
	background: radial-gradient(circle at 50% 50%,#C5CAE9,#b0bec5 70%);
  }

  &:nth-child(3) {
	background: radial-gradient(circle at 50% 50%,#B2EBF2,#b0bec5 70%);
  }

  &:nth-child(4) {
	background: radial-gradient(circle at 50% 50%,#F0F4C3,#b0bec5 70%);
  }

  &:nth-child(5) {
	background: radial-gradient(circle at 50% 50%,#D7CCC8,#b0bec5 70%);
  }
}

body .wrap_inner,
.effect3 .wrap_inner,
.effect5 .wrap_inner,
.effect7 .wrap_inner {
  &:nth-child(2) { 
	-webkit-clip-path: polygon(0% 0%, 50% 0%, 50% 50%, 0% 50%);
  	clip-path: polygon(0% 0%, 50% 0%, 50% 50%, 0% 50%);
  }
  &:nth-child(3) { 
	-webkit-clip-path: polygon(50% 0%, 100% 0%, 100% 50%, 50% 50%);
  	clip-path: polygon(50% 0%, 100% 0%, 100% 50%, 50% 50%);
  }
  &:nth-child(4) { 
	-webkit-clip-path: polygon(50% 50%, 100% 50%, 100% 100%, 50% 100%);
  	clip-path: polygon(50% 50%, 100% 50%, 100% 100%, 50% 100%);
  }
  &:nth-child(5) { 
	-webkit-clip-path: polygon(0% 50%, 50% 50%, 50% 100%, 0% 100%);
  	clip-path: polygon(0% 50%, 50% 50%, 50% 100%, 0% 100%);
  }
}

.effect2 .wrap_inner {
  &:nth-child(2) { 
	-webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  	clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  }
  &:nth-child(3) { 
	-webkit-clip-path: polygon(100% 0%, 100% 0%, 100% 100%, 100% 100%);
  	clip-path: polygon(100% 0%, 100% 0%, 100% 100%, 100% 100%);
  }
  &:nth-child(4) { 
	-webkit-clip-path: polygon(100% 100%, 100% 100%, 100% 100%, 100% 100%);
  	clip-path: polygon(100% 100%, 100% 100%, 100% 100%, 100% 100%);
  }
  &:nth-child(5) { 
	-webkit-clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  	clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  }
}

.effect4 .wrap_inner {
  &:nth-child(2) { 
	-webkit-clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);
  	clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);
  }
  &:nth-child(3) { 
	-webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  	clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  }
  &:nth-child(4) { 
	-webkit-clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  	clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  }
  &:nth-child(5) { 
	-webkit-clip-path: polygon(0% 100%, 0% 100%, 0% 100%, 0% 100%);
  	clip-path: polygon(0% 100%, 0% 100%, 0% 100%, 0% 100%);
  }
}

.effect6 .wrap_inner {
  &:nth-child(2) { 
	-webkit-clip-path: polygon(0% 0%, 0% 0%, 0% 0%, 0% 0%);
  	clip-path: polygon(0% 0%, 0% 0%, 0% 0%, 0% 0%);
  }
  &:nth-child(3) { 
	-webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
  	clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
  }
  &:nth-child(4) { 
	-webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  	clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  }
  &:nth-child(5) { 
	-webkit-clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);
  	clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);
  }
}

.effect8 .wrap_inner {
  &:nth-child(2) { 
	-webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
  	clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
  }
  &:nth-child(3) { 
	-webkit-clip-path: polygon(100% 0%, 100% 0%, 100% 0%, 100% 0%);
  	clip-path: polygon(100% 0%, 100% 0%, 100% 0%, 100% 0%);
  }
  &:nth-child(4) { 
	-webkit-clip-path: polygon(100% 0%, 100% 0%, 100% 100%, 100% 100%);
  	clip-path: polygon(100% 0%, 100% 0%, 100% 100%, 100% 100%);
  }
  &:nth-child(5) { 
	-webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  	clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  }
}

// bucket 
.bucket {
  transform-origin: 40px 207px;
  animation: ani_bucket 1.7s linear infinite;
}

@keyframes ani_bucket {
  0% { transform: rotate(0deg); }
  8% { transform: rotate(35deg); }
  24% { transform: rotate(-35deg); }
  40% { transform: rotate(35deg); }
  58% { transform: rotate(-15deg); }
  66% { transform: rotate(0deg); }
}

.switch {
  position: relative;
z-index: 2;
height: 35px;
margin-top: 25px;
padding: 0 15px;
background: #B72327;
outline: none;
border: none;
border-radius: 20px;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
color: #fff;
text-transform: uppercase;
font-weight: bold;
white-space: nowrap;
font-size: 14px;
line-height: 35px;
cursor: pointer;
  
  &:hover {
background: darken(#B72327,10%);
  }
}
            
          
!
            
              let body = document.querySelector('body');
let effect = 1;

body.addEventListener('click',function(){
	effect++;
  if (effect >= 9) { effect = 1; }
	this.className = "effect" + effect;
});
            
          
!
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.
Loading ..................

Console