Pen Settings

HTML

CSS

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

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

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.

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 width='100%' height='100%' xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1080 1080">
  <style>
    .st0{fill:#4D518C;} .st1{fill:#C9BDA6;stroke:#2C3344;stroke-width:6;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} .st2{fill:#CEA165;stroke:#2C3344;stroke-width:6;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} .st3{fill:#CEA165;} .st4{fill:#BC8E57;} .st5{fill:#4C4138;stroke:#2C3344;stroke-width:6;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} .st6{fill:#D8C2A3;stroke:#2C3344;stroke-width:6;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} .st7{fill:none;stroke:#FFE780;stroke-width:6;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} .st8{fill:#FBA026;stroke:#2C3344;stroke-width:4;stroke-miterlimit:10;} .st9{fill:#FFE780;} .st10{fill:none;stroke:#826C5B;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} .st11{fill:none;stroke:#2C3344;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} .st12{fill:none;stroke:#FFE780;stroke-width:4;stroke-linecap:round;stroke-miterlimit:10;} .st13{fill:none;stroke:#FBA026;stroke-width:6;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} .st14{fill:none;stroke:#2C3344;stroke-width:6;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} .st15{fill:#BAAA91;stroke:#2C3344;stroke-width:6;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} .st16{fill:#BAAA91;} .st17{fill:#FFE780;stroke:#2C3344;stroke-width:6;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} .st18{fill:none;stroke:#EFEFEF;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} .st19{fill:#B8312F;stroke:#2C3344;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} .st20{fill:#EFEFEF;stroke:#2C3344;stroke-width:6;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} .st21{fill:#FFE780;stroke:#2C3344;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} .st22{fill:#B8312F;stroke:#2C3344;stroke-width:6;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} .st23{fill:none;stroke:#FBA026;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}
  </style>
  <path class="st0" d="M0 0h1080v1080H0z" id="BG"/>
  <g id="picture">
    <path class="st1" d="M439.4 193.6h197.4v134.1H439.4z"/>
    <path class="st2" d="M471.8 215.6h132.5v90.1H471.8z"/>
  </g>
  <g id="fireplace_x5F_back">
    <path class="fireplace-back st3" d="M399.5 472.2h281v220.4h-281z"/>
    <path class="st4" d="M655.3 577.5H596c-1.4 0-2.6-1.2-2.6-2.6v-11.8c0-1.4 1.2-2.6 2.6-2.6h59.3c1.4 0 2.6 1.2 2.6 2.6v11.8c.1 1.4-1.1 2.6-2.6 2.6z"/>
    <path class="st4" d="M687.6 597.4h-59.3c-1.4 0-2.6-1.2-2.6-2.6V583c0-1.4 1.2-2.6 2.6-2.6h59.3c1.4 0 2.6 1.2 2.6 2.6v11.8c0 1.4-1.1 2.6-2.6 2.6z"/>
    <path class="st4" d="M518.3 522.9H459c-1.4 0-2.6-1.2-2.6-2.6v-11.8c0-1.4 1.2-2.6 2.6-2.6h59.3c1.4 0 2.6 1.2 2.6 2.6v11.8c0 1.4-1.2 2.6-2.6 2.6z"/>
    <path class="st4" d="M619.5 597.4h-59.3c-1.4 0-2.6-1.2-2.6-2.6V583c0-1.4 1.2-2.6 2.6-2.6h59.3c1.4 0 2.6 1.2 2.6 2.6v11.8c0 1.4-1.1 2.6-2.6 2.6z"/>
    <path class="st4" d="M475.7 656.8h-59.3c-1.4 0-2.6-1.2-2.6-2.6v-11.8c0-1.4 1.2-2.6 2.6-2.6h59.3c1.4 0 2.6 1.2 2.6 2.6v11.8c0 1.4-1.2 2.6-2.6 2.6z"/>
    <path class="st4" d="M439.9 676.7h-59.3c-1.4 0-2.6-1.2-2.6-2.6v-11.8c0-1.4 1.2-2.6 2.6-2.6h59.3c1.4 0 2.6 1.2 2.6 2.6v11.8c0 1.4-1.2 2.6-2.6 2.6z"/>
  </g>
  <g id="firewood_x5F_1">
    <path class="st5" d="M542.8 651.5h49.6v37.1h-49.6z"/>
    <ellipse class="st6" cx="592.3" cy="668.7" rx="7.7" ry="17.1"/>
  </g>
	<g id="fire-reflected">
	<path class="fire-outer-reflected st8" d="M537,538.4l8,46.2c1.4,5.8,4.9,6.9,7.7,1.7l4-11.3c2.1-4,7.4-3.3,8.7,1l14.7,31.2c4.6,9.8,5.9,21,3.1,31.4
		c-3.1,11.4-10.4,21.3-20.9,26.2c-4.7,2.2-9.9,3.4-15.3,3.4c-14.7,0-27.5-8.9-34.2-22.2c-3-5.9-4.5-12.5-4.6-19.2
		c-0.1-4.2,0.6-8.5,1.6-12.6l19.7-75.7C530.3,534.2,536,534,537,538.4z"/>
	<path class="fire-inner-reflected st9" d="M536.8,576.7l8.9,34.4c0.6,2.5,4,2.9,5.3,0.7l5.8-9.8c1.6-2.6,5.5-2.2,6.4,0.7l8.3,15.1
		c4.3,7.9,4.8,17.4,0.9,25.5c-2.8,5.7-7.5,10.4-13.7,13c-3.5,1.5-7.3,2.3-11.3,2.3c-10.8,0-20.2-5.9-25.2-14.7
		c-3.2-5.7-4.1-12.4-2.9-18.8l12-48.3C531.9,574,536,573.8,536.8,576.7z"/>
	<path class="st10" d="M829.5,624.6"/>
</g>
  <g id="fire">
    <path class="fire-outer st8" d="M555.9 538.9l-8 46.2c-1.4 5.8-4.9 6.9-7.7 1.7l-4-11.3c-2.1-4-7.4-3.3-8.7 1l-14.7 31.2c-4.6 9.8-5.9 21-3.1 31.4 3.1 11.4 10.4 21.3 20.9 26.2 4.7 2.2 9.9 3.4 15.3 3.4 14.7 0 27.5-8.9 34.2-22.2 3-5.9 4.5-12.5 4.6-19.2.1-4.2-.6-8.5-1.6-12.6L563.4 539c-.8-4.3-6.5-4.5-7.5-.1z"/>
    <path class="fire-inner st9" d="M556.1 579.1l-8.9 34.4c-.6 2.5-4 2.9-5.3.7l-5.8-9.8c-1.6-2.6-5.5-2.2-6.4.7l-8.3 15.1c-4.3 7.9-4.8 17.4-.9 25.5 2.8 5.7 7.5 10.4 13.7 13 3.5 1.5 7.3 2.3 11.3 2.3 10.8 0 20.2-5.9 25.2-14.7 3.2-5.7 4.1-12.4 2.9-18.8l-12-48.3c-.6-2.9-4.8-3-5.5-.1z"/>
  </g>
  <g id="firewood_x5F_2_1_">
    <path class="st5" d="M517.5 658.2H558v32.3h-40.5c-7.5 0-13.6-6.1-13.6-13.6v-5c-.1-7.5 6-13.7 13.6-13.7z"/>
    <ellipse class="st6" cx="558" cy="673.4" rx="14.4" ry="17.1"/>
    <path class="st11" d="M516 678c0 3.8 6.9 5.3 6.9 5.3"/>
    <path class="st11" d="M530.9 682.5h4.6"/>
    <path class="st10" d="M557.6 664.7c-2.8 0-6.1 3.7-6.1 8.7 0 5 3.4 9.9 6.1 9.9 4.2 0 6.2-3.6 6.4-6.6"/>
    <path class="st5" d="M569.1 608.7l-24.3 12.4-5.6-3c-.4 2.8-10.8 11.4-10.8 11.4L471 658.8l14.5 28.5 98.1-50-14.5-28.6z"/>
    <path class="st11" d="M490 675.5l36.3-18.3"/>
    <path class="st11" d="M533.4 653.4l7.4-3.7"/>
  </g>
  <g id="sparks">
    <path class="spark st12" d="M561.9 555.7l-1.4-5.2"/>
    <path class="spark st12" d="M529.5 591.2l2.7-4.6"/>
    <path class="spark st7" d="M552.8 515.9v-10"/>
    <path class="spark st7" d="M537.1 548.4v-5.3"/>
    <path class="spark st13" d="M567.7 530.1v-2.2"/>
    <path class="spark st13" d="M526.3 527.9v-10"/>
    <path class="spark st13" d="M518 561.1v-4.4"/>
  </g>
  <g id="fireplace_x5F_front">
    <path class="st14" d="M826.6 795.8h77.9"/>
    <path class="st14" d="M175.5 795.8h77.9"/>
    <path class="st1" d="M253.4 732.7h573.2v63.1H253.4z"/>
    <path class="st1" d="M834.5 732.7h-589c0-14.9 12-26.9 26.9-26.9h535.2c14.8 0 26.9 12 26.9 26.9z"/>
    <path class="st1" d="M345.2 511.8h54.3v180.8h-54.3z"/>
    <path class="st1" d="M680.5 511.8h54.3v180.8h-54.3z"/>
    <path class="st1" d="M647.7 446.1V479c13.6 0 24.7 11 24.7 24.7v8.2H743v-6.1c0-14.8 12-26.7 26.7-26.7v-32.8h-122z"/>
    <path class="st1" d="M407.7 511.8v-8.2c0-13.6 11-24.7 24.7-24.7v-32.8h-122V479c14.8 0 26.7 12 26.7 26.7v6.1h70.6z"/>
    <path class="st15" d="M432.3 446.1h215.3v26.1H432.3z"/>
    <path class="st14" d="M361.1 550.5v109"/>
    <path class="st14" d="M381.6 550.5v109"/>
    <path class="st14" d="M697.4 550.5v109"/>
    <path class="st14" d="M717.9 550.5v109"/>
    <path class="st15" d="M276.7 414.5h527.7v44.7H276.7z"/>
    <path class="st1" d="M827.7 397H252.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8h575.5c4.8 0 8.8-3.9 8.8-8.8-.1-4.9-4-8.8-8.9-8.8z"/>
    <path class="st14" d="M346.6 479H396"/>
    <path class="st14" d="M683 479h49.4"/>
    <path class="st1" d="M325 692.6h430v13H325z"/>
    <g id="bricks_1_">
      <path class="st16" d="M770.6 762.8h-59.3c-1.4 0-2.6-1.2-2.6-2.6v-11.8c0-1.4 1.2-2.6 2.6-2.6h59.3c1.4 0 2.6 1.2 2.6 2.6v11.8c0 1.4-1.1 2.6-2.6 2.6z"/>
      <path class="st16" d="M807.9 782.7h-59.3c-1.4 0-2.6-1.2-2.6-2.6v-11.8c0-1.4 1.2-2.6 2.6-2.6h59.3c1.4 0 2.6 1.2 2.6 2.6v11.8c0 1.4-1.2 2.6-2.6 2.6z"/>
      <path class="st16" d="M667 782.7h-59.3c-1.4 0-2.6-1.2-2.6-2.6v-11.8c0-1.4 1.2-2.6 2.6-2.6H667c1.4 0 2.6 1.2 2.6 2.6v11.8c0 1.4-1.2 2.6-2.6 2.6z"/>
      <path class="st16" d="M737.2 782.7h-59.3c-1.4 0-2.6-1.2-2.6-2.6v-11.8c0-1.4 1.2-2.6 2.6-2.6h59.3c1.4 0 2.6 1.2 2.6 2.6v11.8c0 1.4-1.1 2.6-2.6 2.6z"/>
      <path class="st16" d="M519.8 762.8h-59.3c-1.4 0-2.6-1.2-2.6-2.6v-11.8c0-1.4 1.2-2.6 2.6-2.6h59.3c1.4 0 2.6 1.2 2.6 2.6v11.8c.1 1.4-1.1 2.6-2.6 2.6z"/>
      <path class="st16" d="M328.9 762.4h-59.3c-1.4 0-2.6-1.2-2.6-2.6V748c0-1.4 1.2-2.6 2.6-2.6h59.3c1.4 0 2.6 1.2 2.6 2.6v11.8c.1 1.5-1.1 2.6-2.6 2.6z"/>
      <path class="st16" d="M481.4 782.7h-59.3c-1.4 0-2.6-1.2-2.6-2.6v-11.8c0-1.4 1.2-2.6 2.6-2.6h59.3c1.4 0 2.6 1.2 2.6 2.6v11.8c.1 1.4-1.1 2.6-2.6 2.6z"/>
      <path class="st16" d="M362.6 782.7h-59.3c-1.4 0-2.6-1.2-2.6-2.6v-11.8c0-1.4 1.2-2.6 2.6-2.6h59.3c1.4 0 2.6 1.2 2.6 2.6v11.8c.1 1.4-1.1 2.6-2.6 2.6z"/>
    </g>
    <g id="firewood_1_">
      <circle class="st6" cx="308.3" cy="690.6" r="15"/>
      <circle class="st6" cx="278.3" cy="690.6" r="15"/>
      <circle class="st6" cx="325.3" cy="664.7" r="15"/>
      <circle class="st6" cx="293.3" cy="662.8" r="15"/>
      <circle class="st6" cx="310.3" cy="636.5" r="15"/>
      <path class="st10" d="M308.3 683c4.1 0 7.5 3.4 7.5 7.5 0 2.3-1.1 4.4-2.8 5.8"/>
      <path class="st10" d="M298.1 668.6c-1.3 1.1-2.9 1.7-4.7 1.7-4.1 0-7.5-3.4-7.5-7.5s3.4-7.5 7.5-7.5"/>
      <path class="st10" d="M274.6 684.1c3.4-2.4 8.1-1.5 10.4 1.9s1.5 8.1-1.9 10.4"/>
      <path class="st10" d="M307 692.1c-.3 0-4.6-1-4.6-1l-3.8 1.5"/>
      <path class="st10" d="M323.3 656.4c2.5-1.4 5.7-.4 7 2.1"/>
      <path class="st10" d="M314.7 642.6c-1.3.9-2.8 1.4-4.4 1.4-4.4 0-7.9-3.6-7.9-7.9 0-1.9.7-3.7 1.8-5.1"/>
      <path class="st10" d="M314.8 629.5c2.3 1.5 3.5 4 3.6 6.5"/>
      <path class="st10" d="M325 666.3l-3 7.3"/>
    </g>
    <path class="st17" d="M783.9 284.2h-69.6l-2.1 20.6c-.9 9 3.4 17.8 11.2 22.5l7.7 4.7c11.1 6.7 25 6.7 36.1 0l7.7-4.7c7.7-4.7 12.1-13.5 11.2-22.5l-2.2-20.6z"/>
    <path class="st18" d="M721.3 290.2l-1.4 13.6c-.8 7.7 2.9 15.1 9.5 19.1"/>
    <path class="st17" d="M753.6 386l.3-49.4-5 .3-4.8-.3.2 49.4c-19.5 0-23.5 11-23.5 11h56.3s-4-11-23.5-11z"/>
    <path class="st19" d="M763.2 318.4v65.1l11.5-8.6 12.9 8.6v-65.1z"/>
    <path class="st20" d="M790.3 330.4s-2-.9-6.9.8c-4.9 1.7-4.1 3.7-4.1 3.7l-2.4.6s-.9-1.9-5.8-3.4c-4.9-1.5-5.5.6-5.5.6l-2.5-1s.3-2.2-2.7-6.4-4.7-2.9-4.7-2.9l-1.1-2.1-.3.1s1.8-1.4 1.8-6.5-2.2-5.1-2.2-5.1l.3-2.7s2.2-.4 5.3-4.5c3.1-4.1 1.4-5.3 1.4-5.3l1.6-1.9s1.8 1.1 6.7-.3 4.2-3.5 4.2-3.5l2.2-.5s.6 1.9 5.5 3.6c4.9 1.7 5.5-.4 5.5-.4l1.6.5s-1 1.6 2.2 5.6c3.3 4 4.9 2.5 4.9 2.5l1.5 2.3s-1.4 1.7-1.3 6.8c.2 5.1 2.3 5 2.3 5l-.1 2.4s-2.1.2-4.9 4.5-1 5.4-1 5.4l-1.5 2.1z"/>
    <circle class="st21" cx="776" cy="312.9" r="13.2"/>
    <circle class="st11" cx="778.8" cy="315.2" r="4.3"/>
    <path class="st11" d="M779.3 306.2l-3.9 6.2"/>
    <path class="st11" d="M770.3 306.2v13.3"/>
  </g>
  <g id="socks__x26__candy">
    <path class="st22" d="M670 464.5c-2.7 1-5.8-.3-6.8-3.1l-18.3-48.1c-3.5-9.2 1.1-19.5 10.3-23 9.2-3.5 19.5 1.1 23 10.3l1.9 5.1c1 2.7-.3 5.8-3.1 6.8-2.7 1-5.8-.3-6.8-3.1l-1.9-5.1c-1.4-3.7-5.6-5.6-9.3-4.2-3.7 1.4-5.6 5.6-4.2 9.3l18.3 48.1c1 2.9-.3 6-3.1 7z"/>
    <path class="st20" d="M644.9 413.4l.4 1 10.8-12 .1-.1c.7-.8 1.7-1.5 2.8-1.9 2.5-.9 5.2-.4 7.1 1.1l-5.2-12.2c-1.9.1-3.8.4-5.7 1.2-9.2 3.4-13.8 13.7-10.3 22.9z"/>
    <path class="st20" d="M668.2 444.7l-8-20.8-7.3 10.5 8 21z"/>
    <path class="st22" d="M458.5 424.4l-3.9 26.9c-.5 3.2-.3 4.8-.2 5.4.4.3 1.3 1 3.4 2.2.3.2.7.4 1 .6l12 8.6c7.6 4.9 9.7 15.1 4.8 22.6-3.6 5.5-10 8.2-16.1 7.3-2.3-.3-4.5-1.1-6.6-2.5l-13.2-8.6c-5.4-3-16.7-7.3-20.7-14.2-4.2-7.1-.1-15.6 1.5-26.3l3.9-26.9 34.1 4.9z"/>
    <path class="st20" d="M458.5 409.2l-29.4-4.2c-3.3-.5-6.3 1.8-6.8 5.1l-1.9 13.2c-.5 3.3 1.8 6.3 5.1 6.8l29.4 4.2c3.3.5 6.3-1.8 6.8-5.1l1.9-13.2c.5-3.3-1.8-6.3-5.1-6.8z"/>
    <g>
      <path class="st22" d="M533 414.3l-3.9 26.9c-.5 3.2-.3 4.8-.2 5.4.4.3 1.3 1 3.4 2.2.3.2.7.4 1 .6l12 8.6c7.6 4.9 9.7 15.1 4.8 22.6-3.6 5.5-10 8.2-16.1 7.3-2.3-.3-4.5-1.1-6.6-2.5l-13.2-8.6c-5.4-3-16.7-7.3-20.7-14.2-4.2-7.1-.1-15.6 1.5-26.3l3.9-26.9 34.1 4.9z"/>
      <path class="st20" d="M533 399.2l-29.4-4.2c-3.3-.5-6.3 1.8-6.8 5.1l-1.9 13.2c-.5 3.3 1.8 6.3 5.1 6.8l29.4 4.2c3.3.5 6.3-1.8 6.8-5.1l1.9-13.2c.4-3.3-1.9-6.4-5.1-6.8z"/>
    </g>
    <g>
      <path class="st22" d="M612.5 426.1l-3.9 26.9c-.5 3.2-.3 4.8-.2 5.4.4.3 1.3 1 3.4 2.2.3.2.7.4 1 .6l12 8.6c7.6 4.9 9.7 15.1 4.8 22.6-3.6 5.5-10 8.2-16.1 7.3-2.3-.3-4.5-1.1-6.6-2.5l-13.2-8.6c-5.4-3-16.7-7.3-20.7-14.2-4.2-7.1-.1-15.6 1.5-26.3l3.9-26.9 34.1 4.9z"/>
      <path class="st20" d="M612.5 411l-29.4-4.2c-3.3-.5-6.3 1.8-6.8 5.1l-1.9 13.2c-.5 3.3 1.8 6.3 5.1 6.8l29.4 4.2c3.3.5 6.3-1.8 6.8-5.1l1.9-13.2c.5-3.3-1.8-6.4-5.1-6.8z"/>
    </g>
  </g>
  <g id="highlights">
    <path class="st23" d="M686 543.1V626"/>
    <path class="st23" d="M394 539.5v76"/>
    <path class="st23" d="M394 629v20.7"/>
  </g>
</svg>

              
            
!

CSS

              
                
html,
body {
	height: 100%;
}

body {
	background-color: #4d518c;
	overflow: hidden;
}

#fire-reflected {
	visibility: hidden;
}

              
            
!

JS

              
                
TweenMax.set('.spark', {y: 20});

TweenMax.staggerTo('.spark', .4, {y: '-=30', autoAlpha: 0, repeat: -1}, 0.08);

TweenMax.to('.fire-outer', .2, {morphSVG: '.fire-outer-reflected', ease: Power0.easeNone, repeat: -1, yoyo: true});

TweenMax.to('.fire-inner', .22, {morphSVG: '.fire-inner-reflected', ease: Power0.easeNone, repeat: -1, yoyo: true});

TweenMax.to('.fireplace-back', .22, {fill: '#cb9b62', repeat: -1, yoyo: true})

              
            
!
999px

Console