Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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 x="0px" y="0px" width="1200px" height="800px"  color-interpolation-filters="sRGB">
  <defs>
    
  <filter id="pane1">
   <feColorMatrix type="Identity"/>
  </filter>
    
  <filter id="pane2" x="0%" y="0%" width="100%" height="100%">
    <feFlood flood-color="#FEDF91" result="color-fill-one"/>
    <feBlend mode="multiply" in="SourceGraphic" in2="color-fill-one" result="blend-one"/>
    <feComponentTransfer>
      <feFuncB in="blend-one" type="table" tableValues=".08 1"/>
    </feComponentTransfer>
  </filter>
    
    
    <filter id="pane3">
    <feComponentTransfer in="SourceGraphic" result="green-black">
      <feFuncG in="SourceGraphic" type="table" tableValues=".04 1"/>
    </feComponentTransfer>
      <feColorMatrix in="green-black" type="matrix" result="bright-contrast" values="0.92 0 0 0 0.1
                                0 0.92 0 0 0.1 
                                0 0 0.92 0 0.1 
                                0 0 0 1 0  "/>
      <feFlood flood-color="black" flood-opacity="0.8" result="black-flood" x="-10%" y="-10%" width="120%" height="120%"/>
      <feFlood x="4%" y="6%" width="92%" height="88%" flood-color="white" result="white-fill"/>
      <feComposite operator="xor" in2="black-flood" in="white-fill" result="outermargin"/>
      <feGaussianBlur in="outermargin" stdDeviation="40" result="black-blur"/>
      <feComposite operator="in" in2="SourceGraphic" in="black-blur" result="inset-shadow"/>
      <feBlend mode="multiply" in="bright-contrast" in2="inset-shadow"/>
  </filter>
    
    
    <filter id="pane4">
      <feComponentTransfer in="SourceGraphic" result="green-black">
          <feFuncR in="SourceGraphic" type="table" tableValues=".1 1"/>
    </feComponentTransfer>
  </filter>
    
    
    <filter id="pane5" x="0%" y="0%" width="100%" height="100%">
       <feComponentTransfer result="contrast-five">
          <feFuncR type="linear" slope="2" intercept="-0.5"/>
          <feFuncG type="linear" slope="2" intercept="-0.5"/>
          <feFuncB type="linear" slope="2" intercept="-0.5"/>
       </feComponentTransfer>
      <feFlood flood-color="#FFE567" flood-opacity=".7" result="yellow-fill-five"/>
      <feBlend mode="multiply" in="contrast-five" in2="yellow-fill-five"/>
      <feColorMatrix type="saturate" values="0.75" result="desaturate-five"/>
      <feGaussianBlur in="desaturate-five" result="desat-blur" stdDeviation="1"/>
      <!-- add focus blur -->
   </filter>
    
    
    <filter id="pane6">
        <feComponentTransfer result="contrast-five">
          <feFuncR type="table" tableValues=".08 1"/>
          <feFuncG type="table" tableValues="0 0 0.143 0.286 0.429 0.571 0.714 0.857 1"/>
       </feComponentTransfer>
      <feColorMatrix in="contrast-five" type="matrix" result="bright-contrast" values="1.4 0 0 0 -0.3
                                0 1.4 0 0 -0.3 
                                0 0 1.4 0 -0.3 
                                0 0 0 1 0  "/>
  </filter>
    
    
  <filter id="pane7">
    <feColorMatrix type="matrix" values=".2 .35 .45 0 0 
                                         .2 .35 .45 0 0 
                                         .2 .35 .45 0 0 
                                          0  0  0 1 0"
                   result="weighted-grey-scale"/>
     <feComponentTransfer in="weighted-grey-scale" result="adj-grey">
      <feFuncR type="table" tableValues=".1 .33 .66  0.9"/>
      <feFuncG type="table" tableValues=".1 .33 .66  0.9"/>
      <feFuncB type="table" tableValues=".1 .33 .66  0.9"/>
    </feComponentTransfer>
    
     <feComponentTransfer in="adj-grey" result="blown-highs">
      <feFuncR type="table" tableValues="0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6 0.65 0.7 0.75 0.8 0.85 1 1 1"/>
      <feFuncG type="table" tableValues="0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6 0.65 0.7 0.75 0.8 0.85 1 1 1"/>
      <feFuncB type="table" tableValues="0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6 0.65 0.7 0.75 0.8 0.85 1 1 1"/>
    </feComponentTransfer>
      
  </filter>
    
    
  <filter id="pane8">
       <feColorMatrix result="contrast-eight" type="matrix" values="1.75 0 0 0 -0.19
                       0 1.75 0 0 -0.19 
                       0 0 1.75 0 -0.19 
                       0 0 0 1 0  "/>
      <feComponentTransfer in="contrast-eight" result="curves-eight">
          <feFuncR type="table" tableValues="0 0.07 0.15 0.22 0.3 0.4 0.48 0.6 0.67 0.72 0.77 0.82 0.85 0.88 0.91 0.93 0.95 0.96 0.97 0.99 1"/>
          <feFuncG type="table" tableValues="0 0.07 0.15 0.22 0.3 0.4 0.48 0.6 0.67 0.72 0.77 0.82 0.85 0.88 0.91 0.93 0.95 0.96 0.97 0.99 1"/>
          <feFuncB type="table" tableValues="0 0.07 0.15 0.22 0.3 0.4 0.48 0.6 0.67 0.72 0.77 0.82 0.85 0.88 0.91 0.93 0.95 0.96 0.97 0.99 1"/>
       </feComponentTransfer>
    
      <feTurbulence id="b1" type="fractalNoise" baseFrequency="0.075" numOctaves="3"/>
               <feColorMatrix type="matrix" values=".33 .33 .33 0 0 
                                                 .33 .33 .33 0 0 
                                                 .33 .33 .33 0 0 
                                                 0 0 0 1 0"/>
             <feComponentTransfer result="texture">
                <feFuncA type="table" tableValues="0 0.0 0.0 0.0 0.0 0.03 .08 .2 .7 .8 .95 1"/>
            </feComponentTransfer>
          <feComponentTransfer result="colored-texture">
            <feFuncR type="discrete" tableValues="0 .93 .93 .93 .93"/>
            <feFuncG type="discrete" tableValues="0 .84 .84 .84 .84"/>
            <feFuncB type="discrete" tableValues="0 .63 .63 .63 .63"/>
            </feComponentTransfer>
          <feFlood flood-color="#F7ECCA" result="yellow-field"/>
              <feBlend mode="multiply" in="yellow-field" in2="colored-texture" result="old-map-texture"/>
    
    <feBlend mode="multiply" in="old-map-texture" in2="contrast-eight" result="inter-plus-map"/>
    <feFlood result="sepia-fill" flood-color="#FDC589"/>
    <feBlend mode="multiply" in="sepia-fill" in2="inter-plus-map" result="pre-final"/>
    
   <feFlood flood-color="#27412B" result="black-flood"/>
      <feFlood x="4%" y="6%" width="92%" height="88%" flood-color="white" result="white-fill"/>
      <feComposite operator="xor" in2="black-flood" in="white-fill" result="outermargin"/>
      <feGaussianBlur in="outermargin" stdDeviation="40" result="black-blur"/>
      <feBlend mode="multiply" in="pre-final" in2="black-blur"/>
      <feComposite operator="in" in="pre-final" in2="SourceGraphic"/>
  </filter>

    </defs>
    <image id="myImage" filter="url(#pane1)" x="0" y="0" width="1200" height="800" xlink:href="http://www.fb2consulting.com/wp-content/uploads/2014/01/Unnamed_Lake_Dusy_Basin_Kings_Canyon_National_Park-1080x540.jpg"/>
      
</svg>

<table><tr><td>
<button type="button" onclick="switchToFilter1()">Original</button>
  </td>
  <td>
<button type="button" onclick="switchToFilter2()">Filter 2</button>
  </td>
  <td>
<button type="button" onclick="switchToFilter3()">Filter 3</button>
  </td>
  <td>
    <button type="button" onclick="switchToFilter4()">Filter 4</button>
  </td>
  <td>
    <button type="button" onclick="switchToFilter5()">Filter 5</button>
  </td>
  <td>
    <button type="button" onclick="switchToFilter6()">Filter 6</button>
  </td>
  <td>
    <button type="button" onclick="switchToFilter7()">Filter 7</button>
  </td>
  <td>
    <button type="button" onclick="switchToFilter8()">Filter 8</button>
  </td>
  <td>
</tr>
</table>
              
            
!

CSS

              
                
              
            
!

JS

              
                var myImageish = document.getElementById("myImage");

function switchToFilter1() {
        myImageish.setAttribute("filter", "url(#pane1)");
    };
function switchToFilter2() {
        myImageish.setAttribute("filter", "url(#pane2)");
    };
function switchToFilter3() {
        myImageish.setAttribute("filter", "url(#pane3)");
    };
function switchToFilter4() {
        myImageish.setAttribute("filter", "url(#pane4)");
    };
function switchToFilter5() {
        myImageish.setAttribute("filter", "url(#pane5)");
    }
function switchToFilter6() {
        myImageish.setAttribute("filter", "url(#pane6)");
    };
function switchToFilter7() {
        myImageish.setAttribute("filter", "url(#pane7)");
    };
function switchToFilter8() {
        myImageish.setAttribute("filter", "url(#pane8)");
    };

              
            
!
999px

Console