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.

            
              <svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" width="265" height="400" viewBox="0 0 265 400">
  <defs>
    <filter id="Blur">
      <feGaussianBlur in="SourceGraphic" stdDeviation="9" result="blur"></feGaussianBlur>
      <feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 19 -7" result="goo"></feColorMatrix>
    </filter>
  </defs>
  <linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="175.013" y1="365.5" x2="175.013" y2="302">
    <stop offset="0" />
    <stop offset=".463" stop-color="#ED1C24" />
    <stop offset="1" stop-color="#F7931E" />
  </linearGradient>
  <path class="st0" d="M189.5 302s14.5 12 9 25-13.5 11.5-14 19-13.5 20-15 14.5-5 5-5 5L154 360s-9-27 1-29.5 34.5-28.5 34.5-28.5z" />
  <radialGradient id="SVGID_2_" cx="119.75" cy="208.5" r="47.591" gradientUnits="userSpaceOnUse">
    <stop offset="0" stop-color="#F00" />
    <stop offset="1" />
  </radialGradient>
  <ellipse class="st1" cx="119.8" cy="208.5" rx="55.2" ry="38.4" />
  <linearGradient id="SVGID_3_" gradientUnits="userSpaceOnUse" x1="133.109" y1="256.926" x2="133.109" y2="373.5">
    <stop offset="0" stop-color="#FCEE21" />
    <stop offset=".685" stop-color="#ED1C24" />
    <stop offset="1" />
  </linearGradient>
  <path class="st2" d="M74 297.5l15-18s7.5-7 12 2 7-3.5 7-3.5 4-6 10-4.5 15.5-4 16.5-1 5 6 7 0 6-5.5 6.5-1 2 10 4.5 4 4.5 6 4.5 6l6-16s7-9.5 12.5-8.5 7 4 5.5 14c0 0 8 1.5.5 13l-2.5 8.5s17 10 12.5 18S186 326 186 326l-24.5 19-8 28.5-53-.5-2-61s0-14-2.5-6.5-2 4-4 2-9 13-7.5 6-6-7.5-8.5-9.5-2-6.5-2-6.5z"
  />
  <radialGradient id="SVGID_4_" cx="128.188" cy="288.321" r="43.163" gradientTransform="matrix(1 0 0 .5 0 144.2)" gradientUnits="userSpaceOnUse">
    <stop offset="0" stop-color="#FCCA21" />
    <stop offset=".087" stop-color="#FCEE21" />
    <stop offset=".685" stop-color="#FCEE21" />
    <stop offset="1" stop-color="#F7931E" />
  </radialGradient>
  <path class="st3" d="M79.5 303s-5.5-11.5 7.5-8 11 7 17 10 30.5 16.5 46 9 23.5-11.5 24-17.5-1.5-9.5 2-10.5 3-6.5 4-10.5 4-13.5 1.5-15-8.5 15-8.5 15l-20 7-28.5-8.5s-11.5 1-17.5 9-10-3.5-10-3.5L76.5 295s-7.5-.5 3 8z" />
  <radialGradient id="SVGID_5_" cx="217.261" cy="296.5" r="15.629" gradientTransform="matrix(1.9 0 0 .8 -277.5 59.3)" gradientUnits="userSpaceOnUse">
    <stop offset="0" stop-color="#F77E1E" />
    <stop offset="1" stop-color="#FCCA21" stop-opacity="0" />
  </radialGradient>
  <ellipse class="st4" cx="128.1" cy="296.5" rx="39.4" ry="6.5" />
  <g id="flame" filter="url(#Blur)">
    <path id="sp5-2" d="M138.3,219l-6,11.7l10.7-0.3c0,0-0.7-10.7-2.7-11C138.3,219,138.3,219,138.3,219z"/>
    <path id="sp5-1" d="M133.3,215.7l4.7,10l6.7-5.3C144.7,220.3,133,199.3,133.3,215.7z"/>
    <path id="sp4-2" d="M107,198l6,3l2-9C115,192,102.7,190.7,107,198z"/>
    <path id="sp4-1" d="M107.3,185.7l3,10l6.7-7.3C117,188.3,107.7,175.7,107.3,185.7z"/>
    <path id="bk-f" class="st6" d="M135.1 268.7s-36.3 12.2-32.4-66.9c3.8-79.1 31.1-99.1 31.1-99.1s-12.8 24.8-8.1 57.1 29.4 66.9 9.4 108.9z" />
    <linearGradient id="f-stable_1_" gradientUnits="userSpaceOnUse" x1="122.282" y1="266.242" x2="122.282" y2="113.5">
      <stop offset="0" stop-color="#FCEE21" />
      <stop offset=".181" stop-color="#FFF" />
      <stop offset=".463" stop-color="#FFF" />
      <stop offset=".81" stop-color="#FDE3C5" />
      <stop offset=".889" stop-color="#FCEE21" />
      <stop offset=".996" stop-color="#F00" />
    </linearGradient>
    <path id="f-stable" class="st7" d="M133.5 265.5s-29.5 12-28-60.5 23.5-91.5 23.5-91.5-10 23-5.5 52.5 25.5 60.5 10 99.5z" />
    <path id="f1" class="st9" d="M132.5 266.5s-29.5 12-28-60.5-1.2-108.3-1.2-108.3 17.8 39.8 22.3 69.3c4.6 29.5 22.4 60.5 6.9 99.5z" />
    <path id="f2" class="st9" d="M127.3 266.3s-24 11.8-22.5-60.7 24.2-93.3 24.2-93.3-7.8 25.2-3.3 54.7c4.5 29.5 33.3 64.3 1.6 99.3z" />
    <path id="f3" class="st9" d="M122.7 266s-14.5 9.8-13-62.7S136 129 136 129s-12.7 11.3-2 36c11.8 27.4 17.3 96.7-11.3 101z" />
    <path id="f4" class="st9" d="M128.3 265.7s-12.8 10.2-19.7-62c-4-42-14.7-65.3-14.7-65.3s28.5 17.7 38 46c9.4 27.6 28.1 46.3-3.6 81.3z" />
    <path id="f5" d="M128.3 265.7s-19-5-15.3-64.7c2.6-42.1 26-75.7 26-75.7s-9.5 30.7 0 59c9.3 27.7 16 81-10.7 81.4z" />
    <path id="f6" d="M128.3 265.7s-29.1 4.3-11-52.7c13.3-42-23-87-23-87s39.1 33.7 48.7 62c9.3 27.7 12 77.3-14.7 77.7z" />
    <path id="f7" d="M128.3 265.7s-22.7 12-19.3-47.7c2-35 .3-124.3.3-124.3s8.6 85.6 29.7 106.7c17.3 17.3 16 64.9-10.7 65.3z" />
    <path id="f8" class="st9" d="M122.7 266s-14.5 9.8-13-62.7S136 129 136 129s-12.7 11.3-2 36c11.8 27.4 17.3 96.7-11.3 101z" />
    <path id="f9" class="st9" d="M128.3 265.7s-12.8 10.2-19.7-62c-4-42-14.7-65.3-14.7-65.3s28.5 17.7 38 46c9.4 27.6 28.1 46.3-3.6 81.3z" />
    <path id="f10" d="M128.3 265.7s-19-5-15.3-64.7c2.6-42.1 26-75.7 26-75.7s-9.5 30.7 0 59c9.3 27.7 16 81-10.7 81.4z" />
    <path id="sp3-2" class="st8" d="M111 187.5c-6 19-10.5 36 0 30.5s0-30.5 0-30.5z" />
    <path id="sp3-1" class="st8" d="M101 195l15.5-6-1.5 32.5z" />
    <path id="sp2-2" class="st8" d="M125.5 209s-15 19-2 29.5 20 8 14 .5 2.5-46.5-12-30z" />
    <path id="sp2-1" class="st8" d="M124 186s-7.5 27.5-2 34 15-1 15-1l-1.5-18s-11-.5-11.5-15z" />
    <path id="sp1-2" class="st8" d="M125.5 152.5c-15.8-6.5 2.5 34.5 6.5 23s2-19.5-6.5-23z" />
    <path id="sp1-1" class="st8" d="M124.5 147l-7 24s18 5.5 16-.5-9-23.5-9-23.5z" />
    <path id="underlight" class="st11" d="M114,260c0,0,7.7,8.7,12.7,5C131.7,261.3,114,260,114,260z"/>
  </g>
  <linearGradient id="SVGID_6_" gradientUnits="userSpaceOnUse" x1="128.829" y1="248" x2="128.829" y2="296.262">
    <stop offset="0" stop-color="#FFF" />
    <stop offset=".087" stop-color="#FCEE21" />
    <stop offset=".278" />
    <stop offset=".793" stop-color="#885016" />
    <stop offset=".883" stop-color="#ED1C24" />
    <stop offset="1" stop-color="#F7931E" />
  </linearGradient>
  <path class="st9" d="M127.5 295s3-23-1-32.5 1-14.5 1-14.5 7.5 20.5 4.5 37-4.5 10-4.5 10z" />
</svg>
            
          
!
            
              html {
  background: black;
}

svg {
  height: 100vh;
  margin: auto;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
}

.st0{fill:url(#SVGID_1_);} .st1{fill:url(#SVGID_2_);} .st2{fill:url(#SVGID_3_);} .st3{opacity:0.4;fill:url(#SVGID_4_);} .st4{fill:url(#SVGID_5_);} .st5{fill:#FF0000;} .st6{fill:#EF4B0A;} .st7{fill:url(#f-stable_1_);} .st8{fill:#D900FF;} .st9{fill:url(#SVGID_6_);}
.st11{fill:#B437D3;opacity:0.2;}

#f-stable2 {
  left: 50px;
  position: absolute;
}

#sp1-1, #sp3-1 {
  fill: #FCEEAD;
}

#sp2-1, #sp4-1, #sp5-1  {
  fill: #fff;
}

@for $i from 1 through 11 {
  #f#{$i} {
    visibility: hidden;
  }
}

#sp1-2, #sp2-2, #sp3-2, #sp4-2, #sp5-2 {
  visibility: hidden;
}
            
          
!
            
              var fStable = $("#f-stable"),
  bkF = $("#bk-f"),
  fStablePath = fStable[0].getAttribute("d"),
  bkFPath = bkF[0].getAttribute("d"),
  blurNode = $("feGaussianBlur");

MorphSVGPlugin.convertToPath("ellipse");
TweenMax.set("#sp5-1", {
  x: -17
});
TweenMax.set("#f-stable2", {
  scale: 0.7,
  x: 8,
  transformOrigin: "50% 50%"
});

function flame() {
  var tl = new TimelineMax();

  tl.add("begin");
  tl.fromTo(blurNode, 2.5, {
    attr: {
      stdDeviation: 9
    }
  }, {
    attr: {
      stdDeviation: 3
    }
  }, "begin");
  var num = 9;
  for (var i = 1; i <= num; i++) {
    tl.to(fStable, 1, {
      morphSVG: {
        shape: "#f" + i
      },
      opacity: ((Math.random() * 0.7) + 0.7),
      ease: Linear.easeNone
    }, "begin+=" + i);
  }
  for (var i = 1; i <= num; i++) {
    tl.to(bkF, 1, {
      morphSVG: {
        shape: "#f" + i
      },
      scale: 1.1,
      opacity: ((Math.random() * 0.7) + 0.7),
      transformOrigin: "50% 50%",
      ease: Linear.easeNone
    }, "begin+=" + i);
  }
  tl.to(blurNode, 2, {
    attr: {
      stdDeviation: 8
    }
  }, "begin+=4");
  tl.to(".st1", 2, {
    scale: 1.5,
    transformOrigin: "50% 50%"
  }, "begin");
  tl.to(".st1", 2, {
    scale: 1.2,
    transformOrigin: "50% 50%"
  }, "begin+=2");
  tl.to("#sp1-1", 5, {
    morphSVG: {
      shape: "#sp1-2"
    },
    y: -100,
    x: 20,
    opacity: 0
  }, "begin");
  tl.to("#sp2-1", 6, {
    morphSVG: {
      shape: "#sp2-2"
    },
    y: -200,
    x: -20,
    scale: 0.4,
    fill: "#FCEEAD",
    rotation: 60,
    opacity: 0
  }, "begin+=3");
  tl.to("#sp3-1", 6, {
    morphSVG: {
      shape: "#sp3-2"
    },
    y: -100,
    x: -40,
    scale: 0.7,
    opacity: 0
  }, "begin");
  tl.to("#sp4-1", 5, {
    morphSVG: {
      shape: "#sp4-2"
    },
    y: -100,
    fill: "#FCEEAD",
    x: 20
  }, "begin+=5");
  tl.to(".st1", 2, {
    scale: 1.5,
    transformOrigin: "50% 50%"
  }, "begin+=5");
  tl.to(blurNode, 2, {
    attr: {
      stdDeviation: 2
    }
  }, "begin+=6");
  tl.to(blurNode, 2.5, {
    attr: {
      stdDeviation: 9
    }
  }, "begin+=8");
  tl.to("#sp5-1", 3, {
    morphSVG: {
      shape: "#sp5-2"
    },
    y: -200,
    x: -20,
    scale: 0.4,
    fill: "#FCEEAD",
    rotation: 60
  }, "begin+=8");
  tl.to(fStable, 1, {
    morphSVG: {
      shape: fStablePath
    },
    opacity: 1,
    ease: Linear.easeNone,
  }, "begin+=10");
  tl.to(bkF, 1, {
    morphSVG: {
      shape: bkFPath
    },
    opacity: 1,
    ease: Linear.easeNone
  }, "begin+=10");
  tl.to(".st1", 1, {
    scale: 1,
    transformOrigin: "50% 50%"
  }, "begin+=10");

  tl.timeScale(1.2);

  return tl;
}

var master = new TimelineMax({
  repeat: -1,
  smoothChildTiming: true
});
master.add(flame());
            
          
!
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