css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <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>
            
          
!
            
              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
🕑 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