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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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
     xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink"
     id="svg4688"
     viewBox="0 0 428.65 506.56"
     version="1.1">
    <defs
       id="defs3">
      <radialGradient
         id="radialGradient19759">
        <stop
           id="stop19764"
           style="stop-color:#000000;stop-opacity:.74118"
           offset="0" />
        <stop
           id="stop19765"
           style="stop-color:#ffffff;stop-opacity:0"
           offset="1" />
      </radialGradient>
      <linearGradient
         id="linearGradient30527"
         y2="299.89"
         xlink:href="#linearGradient17250"
         gradientUnits="userSpaceOnUse"
         y1="448.68"
         gradientTransform="matrix(.93941 0 0 1.4462 1126.6 -347.43)"
         x2="-953.88"
         x1="-1006.6" />
      <linearGradient
         id="linearGradient30528"
         y2="272.82"
         xlink:href="#linearGradient17250"
         gradientUnits="userSpaceOnUse"
         y1="330.2"
         gradientTransform="matrix(.70158 0 0 1.9364 1126.6 -347.43)"
         x2="-1335"
         x1="-1308.2" />
      <linearGradient
         id="linearGradient30530"
         y2="376.9"
         xlink:href="#linearGradient14625"
         gradientUnits="userSpaceOnUse"
         y1="244.05"
         gradientTransform="matrix(.60192 0 0 1.6614 25.198 -313.52)"
         x2="239.46"
         x1="110.45" />
      <linearGradient
         id="linearGradient30531"
         y2="232.9"
         xlink:href="#linearGradient26051"
         gradientUnits="userSpaceOnUse"
         y1="232.9"
         gradientTransform="matrix(.60694 0 0 1.6476 1.4943 -282.37)"
         x2="502.45"
         x1="468.41" />
      <linearGradient
         id="linearGradient30532"
         y2="500.8"
         gradientUnits="userSpaceOnUse"
         y1="256.78"
         gradientTransform="matrix(.80596 0 0 1.2407 19.103 -295.91)"
         x2="323.1"
         x1="9.655">
        <stop
           id="stop29187"
           style="stop-color:#ffffff"
           offset="0" />
        <stop
           id="stop29188"
           style="stop-color:#ffffff;stop-opacity:0"
           offset="1" />
      </linearGradient>
      <linearGradient
         id="linearGradient30537"
         y2="362.16"
         xlink:href="#linearGradient17250"
         gradientUnits="userSpaceOnUse"
         y1="438.47"
         gradientTransform="matrix(.92675 0 0 1.4659 1126.6 -347.43)"
         x2="-857.96"
         x1="-916.9" />
      <linearGradient
         id="linearGradient30538"
         y2="485.78"
         xlink:href="#linearGradient14625"
         gradientUnits="userSpaceOnUse"
         y1="384.4"
         gradientTransform="matrix(.7951 0 0 1.2577 25.198 -310.81)"
         x2="317.14"
         x1="501.4" />
      <linearGradient
         id="linearGradient30539"
         y2="294.87"
         xlink:href="#linearGradient26051"
         gradientUnits="userSpaceOnUse"
         y1="294.87"
         gradientTransform="matrix(.60253 0 0 1.6597 1.4943 -284.4)"
         x2="572.41"
         x1="533.78" />
      <linearGradient
         id="linearGradient17250">
        <stop
           id="stop17251"
           style="stop-color:#dc0000"
           offset="0" />
        <stop
           id="stop17252"
           style="stop-color:#ffb200"
           offset="1" />
      </linearGradient>
      <linearGradient
         id="linearGradient30540"
         y2="306.76"
         xlink:href="#linearGradient17250"
         gradientUnits="userSpaceOnUse"
         y1="404.58"
         gradientTransform="matrix(.79621 0 0 1.7063 1126.6 -347.43)"
         x2="-1102.7"
         x1="-1131" />
      <linearGradient
         id="linearGradient26051">
        <stop
           id="stop26052"
           style="stop-color:#ffffff;stop-opacity:.44928"
           offset="0" />
        <stop
           id="stop26053"
           style="stop-color:#ffffff;stop-opacity:0"
           offset="1" />
      </linearGradient>
      <linearGradient
         id="linearGradient30541"
         y2="179.97"
         xlink:href="#linearGradient26051"
         gradientUnits="userSpaceOnUse"
         y1="179.97"
         gradientTransform="matrix(.54412 0 0 1.8378 1.4943 -282.37)"
         x2="390.32"
         x1="349.43" />
      <linearGradient
         id="linearGradient14625">
        <stop
           id="stop14626"
           style="stop-color:#ffffff"
           offset="0" />
        <stop
           id="stop14627"
           style="stop-color:#ffffff;stop-opacity:0"
           offset="1" />
      </linearGradient>
      <linearGradient
         id="linearGradient30542"
         y2="403.09"
         xlink:href="#linearGradient14625"
         gradientUnits="userSpaceOnUse"
         y1="246.21"
         gradientTransform="matrix(.68311 0 0 1.4639 23.843 -315.55)"
         x2="342.54"
         x1="198.88" />
    </defs>
    <g id="filtered">
      <ellipse rx="220" ry="100" cx="240" cy="315" fill="url(#radialGradient19759)" />
      <path
         id="path15991"
         style="stroke-opacity:.50382;fill-rule:evenodd;stroke:#ffff00;stroke-width:2.1563;fill:url(#linearGradient30527)"
         d="m136.41 233.07c19.35 57.18 49.96 87.5 104.82 90.97 60.36 19.34 116.38-20.22 100.5-82.3-7.22 13.28-11.84 20.5-24.26 24.25 4.91-34.36-26.57-40.14-11.26-77.1 10.68-22.81 17.03-50.82-1.74-73.64-7.79 25.99-17.32 43.32-36.38 62.38 2.02-31.77 18.77-57.47 8.66-87.5 1.45-20.214-31.76-19.637-32.05-81.434-21.08 26.567-30.03 47.07-26.86 87.498-7.79 32.636-26.85 44.466-23.39 79.706-2.89-19.64-4.91-36.68-0.86-51.12-2.32-17.9-4.63-33.206-22.53-45.912 5.49 22.232 11.84 55.732-6.93 64.112-5.2 10.68-31.19 47.35-2.6 104.82-8.37-4.91-16.75-6.35-25.12-14.73z" />
      <path
         id="path15990"
         style="stroke-opacity:.50382;fill-rule:evenodd;stroke:#ffff00;stroke-width:2.1563;fill:url(#linearGradient30528)"
         d="m235.17 315.37c-45.92-48.51-53.71-82.3-23.39-114.35 34.07-60.64 25.7-98.76 0.86-135.15 23.39 80.57-27.72 132.55-44.18 155.94-9.82-30.32-1.44-43.32 12.13-80.57-26.57 28.88-42.74 63.82-32.92 97.03 17.9 49.96 60.06 60.93 87.5 77.1z" />
      <path
         id="path15994"
         style="stroke-opacity:.50382;fill-rule:evenodd;stroke:#ffff00;stroke-width:2.1563;fill:#ffd700"
         d="m290.89 132.07c-6.15-17.9-1.13-21.73 4.26-29.55 5.56-2.17 3.86-9.719 6.89-26.539 4.6 18.774 16.93 27.309-11.15 56.089z" />
      <path
         id="path26054"
         style="fill-rule:evenodd;fill:url(#linearGradient30530)"
         d="m215.1 65.79c0.64 13.778 4.56 27.421 2.76 41.33-1.58 32.47-15.85 63-35.54 88.41-3.65 5.19-7.54 10.21-11.31 15.32-5.03-16.77-2.76-34.86 4.02-50.77 3.57-8.51 6.08-17.33 7.39-26.48-18.82 17.17-32.11 40.58-36.78 65.63-3.8 23.17 4.35 46.99 19.73 64.4 19.32 22.8 47.11 35.61 74.05 47.07-15.27-21.47-36.51-40.84-41.02-67.97-3.1-15.75 3.1-31.55 13.45-43.33 11.84-16.26 19.21-35.61 23.59-55.14 5.69-25.44 1.13-52.944-12.77-75.001-3.43-2.508-9.56-15.685-7.57-3.469z" />
      <path
         id="path28563"
         style="fill-rule:evenodd;fill:url(#linearGradient30531)"
         d="m297.81 73.037c-1.87 7.98-1.03 16.775-4.5 24.219-8.14 6.224-11.69 17.774-8.12 27.584 1.1 8.22 3.67 9.64 8.23 2.13 9.73-10.01 18.84-24.36 13.3-38.71-2.5-7.319-4.69-14.75-7.48-21.973-0.47 2.25-0.95 4.5-1.43 6.75z" />
      <path
         id="path29198"
         style="fill-rule:evenodd;fill:url(#linearGradient30532)"
         d="m238.42 21.137c-15 19.685-21.35 44.824-19.44 69.337 1.42 11.986-4.95 23.146-9.49 33.856-8.34 15.96-15.88 33.39-13.6 51.83-0.66 10.63-5.38-0.08-4.89-5.43-2.26-15.03-3.22-30.62-0.14-45.52-1.55-14.49-5.23-30.204-17.19-39.729 3.55 17.199 8.17 36.599-0.41 53.029-3.08 5.51-9.96 7.01-11.4 13.63-14.44 25.3-15.53 56.84-4.57 83.63 2.28 6.1 5.26 11.92 7.84 17.9-8.04-4.6-16.87-7.71-24.65-12.75 10.77 31.54 31.26 62.58 63.6 74.86 12.72 5.41 26.58 6.42 40.02 8.55 29.45 9.2 66 3.16 85.43-22.47 11.41-14.83 14.58-34.84 10.7-52.91-5.14 10.4-14.05 18.83-25.56 21.5 2.64-13.35-1.39-26.72-8.29-38.14-7.44-12.18-9.19-27.59-3.25-40.76 9.02-19.76 15.83-43.68 5.33-64.25-3.25-9.5-5.54-3.67-7.18 3.06-6.87 21.12-20.74 39.09-36.43 54.5 1.09-21.55 8.61-41.94 11.8-63.12 1.83-10.79-0.27-21.62-2.53-32.07-1.54-11.742-13.77-17.766-18.94-27.821-9.2-13.373-12.26-29.995-12.8-45.962-1.32 1.75-2.64 3.5-3.96 5.25z" />
      <path
         id="path15993"
         style="stroke-opacity:.50382;fill-rule:evenodd;stroke:#ffff00;stroke-width:2.1563;fill:#ffd700"
         d="m330.46 241.74c15.89-15.31 12.71-21.95 11.27-32.92-4.62-5.2 1.15-12.13 6.93-31.19-14.73 17.04-32.06 19.35-18.2 64.11z" />
      <path
         id="path15992"
         style="stroke-opacity:.50382;fill-rule:evenodd;stroke:#ffff00;stroke-width:2.1563;fill:url(#linearGradient30537)"
         d="m255.96 315.37c17.9-10.1 22.81-41.87 25.12-77.1 4.33-34.08 13-68.15 70.18-73.64-23.4 18.77-42.45 41.88-33.79 84.9-2.31 62.67-48.8 60.36-61.51 65.84z" />
      <path
         id="path15989"
         style="stroke-opacity:.50382;fill-rule:evenodd;stroke:#ffff00;stroke-width:2.1563;fill:url(#linearGradient30540)"
         d="m224.77 291.98c-2.31-27.72-5.48-47.65 29.46-72.77 59.2-41.29 30.03-65.26-6.93-108.29 10.97 42.74-6.64 76.81-21.66 99.63-9.82 14.15-43.89 43.03-0.87 81.43z" />
      <path
         id="path28562"
         style="fill-rule:evenodd;fill:url(#linearGradient30539)"
         d="m344.96 171.54c-9.82 10.4-24.08 20.13-23.73 36.12-0.73 11.46 3.35 22.38 5.89 33.38 8.53-8.14 18.22-18.74 15.1-31.58-0.02-5.65-4.29-10.6-0.94-16.11 3.21-8.73 6.58-17.41 8.81-26.47-1.71 1.55-3.42 3.1-5.13 4.66z" />
      <path
         id="path15995"
         style="stroke-opacity:.50382;fill-rule:evenodd;stroke:#ffff00;stroke-width:2.1563;fill:#ffd700"
         d="m202.19 88.632c15.99-18.411 11.88-25.989 9.27-38.664-5.55-5.844 0.13-14.123 4.68-36.477-14.56 20.374-33.34 23.763-13.95 75.141z" />
      <path
         id="path28564"
         style="fill-rule:evenodd;fill:url(#linearGradient30541)"
         d="m212.31 9.5683c-9.31 12.175-23.43 23.408-22.69 40.282-0.1 14.029 5.43 27.118 9.56 40.281 8.44-9.635 17.42-21.87 13.67-35.446 0.02-5.372-3.74-9.542-3.85-14.616 2.06-11.975 6.31-23.543 7.99-35.626-1.56 1.7087-3.12 3.417-4.68 5.1253z" />
      <path
         id="path26055"
         style="fill-rule:evenodd;fill:url(#linearGradient30542)"
         d="m246.41 103.76c6.4 29.13-0.2 59.83-14.94 85.42-9.15 17.6-27.2 31.08-28.92 52.01-2.76 18.25 10.39 33.46 22.57 45.24 4.96 6.24 0.71-8.51 1.38-11.96-1.98-17.95 1.1-38.09 15.59-50.4 16.12-15.69 39.12-26.56 46.84-49.11 5.23-19.91-8.69-37.76-20.84-51.9-7.32-8.88-15.04-17.41-22.72-25.989 0.35 2.229 0.69 4.459 1.04 6.689z" />
      <path
         id="path26056"
         style="fill-rule:evenodd;fill:url(#linearGradient30538)"
         d="m344.67 159.66c-24.38 3.45-49.52 18.1-56.67 42.98-11.49 31.1-5.14 66.49-20.8 96.36-5.95 2.58-4.5 13.67 2.85 11.5 21.52-3.9 41.94-18.85 47.39-40.78 5.26-15.24 2.28-31.35 1.72-47 0.71-22.69 13.85-43.16 31.1-57.16 3.02-4.35-2.02-5.81-5.59-5.9z" />
    </g>
  </svg>

              
            
!

CSS

              
                html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: #111;
}

              
            
!

JS

              
                /************************************
  This codepen is part of the svg.js
  advent calendar. You can find all
  the pens at twitter: @svg_js
*************************************/

/* Remove the code to see the original image */

// Get the flames and give it a size
const canvas = SVG('#svg4688')
  .size(window.innerWidth, window.innerHeight - 20)

// Create an animated filter
const filter = canvas.filter((filter) => {
  // Turbulence and color filter
  var temp = filter.turbulence(0.05, 3)
    .colorMatrix('hueRotate', 0)

  // We animate the hueRotate value
  temp.animate(1500).ease('-').attr('values', 360).loop()

  // Use the created bumpmap to filter the image
  filter.displacementMap('SourceGraphic', temp, 50, 'R', 'G')
})

// Apply the filter to our group
SVG('#filtered').filterWith(filter)

              
            
!
999px

Console