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

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

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

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

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.

            
              <h1>CSS3 filter Property Test</h1>

<hr />

<h2 id="unfiltered">Original/Unfiltered</h2>

<figure>
  <a href="https://www.flickr.com/photos/cziebarth/15676654630" title="75th Birthday Flowers by christianz, on Flickr"><img src="https://farm9.staticflickr.com/8622/15676654630_17727de977.jpg" width="500" height="281" alt="75th Birthday Flowers"></a>
</figure>

<hr />

<h2 id="invert">Inverted</h2>

<figure>
  <a href="https://www.flickr.com/photos/cziebarth/15676654630" title="75th Birthday Flowers by christianz, on Flickr"><img src="https://farm9.staticflickr.com/8622/15676654630_17727de977.jpg" width="500" height="281" alt="75th Birthday Flowers"></a>
</figure>

<hr />

<h2 id="blur">Blurred</h2>

<figure>
  <a href="https://www.flickr.com/photos/cziebarth/15676654630" title="75th Birthday Flowers by christianz, on Flickr"><img src="https://farm9.staticflickr.com/8622/15676654630_17727de977.jpg" width="500" height="281" alt="75th Birthday Flowers"></a>
</figure>

<hr />

<h2 id="brightness">Brightness</h2>

<figure>
  <a href="https://www.flickr.com/photos/cziebarth/15676654630" title="75th Birthday Flowers by christianz, on Flickr"><img src="https://farm9.staticflickr.com/8622/15676654630_17727de977.jpg" width="500" height="281" alt="75th Birthday Flowers"></a>
</figure>

<hr />

<h2 id="contrast">Contrast</h2>

<figure>
  <a href="https://www.flickr.com/photos/cziebarth/15676654630" title="75th Birthday Flowers by christianz, on Flickr"><img src="https://farm9.staticflickr.com/8622/15676654630_17727de977.jpg" width="500" height="281" alt="75th Birthday Flowers"></a>
</figure>

<hr />

<h2 id="grayscale">Grayscale</h2>

<figure>
  <a href="https://www.flickr.com/photos/cziebarth/15676654630" title="75th Birthday Flowers by christianz, on Flickr"><img src="https://farm9.staticflickr.com/8622/15676654630_17727de977.jpg" width="500" height="281" alt="75th Birthday Flowers"></a>
</figure>

<hr />

<h2 id="sepia">Sepia</h2>

<figure>
  <a href="https://www.flickr.com/photos/cziebarth/15676654630" title="75th Birthday Flowers by christianz, on Flickr"><img src="https://farm9.staticflickr.com/8622/15676654630_17727de977.jpg" width="500" height="281" alt="75th Birthday Flowers"></a>
</figure>

<hr />

<h2 id="hue-rotate">hue-rotate</h2>

<figure>
  <a href="https://www.flickr.com/photos/cziebarth/15676654630" title="75th Birthday Flowers by christianz, on Flickr"><img src="https://farm9.staticflickr.com/8622/15676654630_17727de977.jpg" width="500" height="281" alt="75th Birthday Flowers"></a>
</figure>

<hr />

<h2 id="saturate">saturate</h2>

<figure>
  <a href="https://www.flickr.com/photos/cziebarth/15676654630" title="75th Birthday Flowers by christianz, on Flickr"><img src="https://farm9.staticflickr.com/8622/15676654630_17727de977.jpg" width="500" height="281" alt="75th Birthday Flowers"></a>
</figure>

<hr />

<h2 id="opacity">opacity</h2>

<figure>
  <a href="https://www.flickr.com/photos/cziebarth/15676654630" title="75th Birthday Flowers by christianz, on Flickr"><img src="https://farm9.staticflickr.com/8622/15676654630_17727de977.jpg" width="500" height="281" alt="75th Birthday Flowers"></a>
</figure>

<hr />

<h2 id="drop-shadow">drop-shadow</h2>

<figure>
  <a href="https://www.flickr.com/photos/cziebarth/15676654630" title="75th Birthday Flowers by christianz, on Flickr"><img src="https://farm9.staticflickr.com/8622/15676654630_17727de977.jpg" width="500" height="281" alt="75th Birthday Flowers"></a>
</figure>

<hr />

<h2 id="svg">SVG filter</h2>

<p>(This example awaits an SVG filter to use.)</p>

<figure>
  <a href="https://www.flickr.com/photos/cziebarth/15676654630" title="75th Birthday Flowers by christianz, on Flickr"><img src="https://farm9.staticflickr.com/8622/15676654630_17727de977.jpg" width="500" height="281" alt="75th Birthday Flowers"></a>
</figure>
            
          
!
            
              /* The filter property allows you to apply Photoshop-like filters on images or any element in the DOM. The effects include: */

#invert + FIGURE
{
  filter: invert(70%); 
  /* invert(percent) — inverts the colors. 0% is unchanged and 100% creates a full negative image. */
}

#blur + FIGURE
{
  filter: blur(3px); 
  /* blur(radius) — applies a Gaussian blur */
}

#brightness + FIGURE
{
  filter: brightness(40%);
  /* brightness(percent) — changes the brightness. 100% is unchanged, over 100% makes the element brighter and under 100% makes it darker (0% is complete black). */
}

#contrast + FIGURE
{
  filter: contrast(40%);
  /* contrast(percent) — changes the contrast. 100% is unchanged, over 100% gives less contrast and under 100% gives more contrast (0% is complete black). */
}

#grayscale + FIGURE
{
  filter: grayscale(40%); 
  /* grayscale(percent) — converts a color image to grayscale. 0% is unchanged and 100% is full grayscale. */
}

#sepia + FIGURE
{
  filter: sepia(100%);
  /* sepia(percent) — converts a color image to sepia. 0% is unchanged and 100% is full sepia. */
}

#hue-rotate + FIGURE
{
  filter: hue-rotate(180deg);
  /* hue-rotate(angle) — changes the colors by the number of degrees around the color circle. */
}

#saturate + FIGURE
{
  filter: saturate(40%);
  /* saturate(percent) — saturates the colors. 100% is unchanged. */
}

#opacity + FIGURE
{
  filter: opacity(50%);
  /* opacity(percent) — identical to the CSS opacity property although some browsers will provide hardware acceleration for improved performance. */
}

#drop-shadow + FIGURE
{
  filter: drop-shadow(12px 12px 7px SeaGreen);
  /* drop-shadow(offsetx, offsety, blur, spread, color) — similar to the standard box-shadow effect except the shadow will apply to non-rectangular images with an alpha mask applied. */
}

#svg + FIGURE
{
  filter: url(#drop-shadow); /* Okay, so I still need to specify something real here. */
  /* url(file.svg#target) — specifies an SVG filter */
}

/* More info at:

http://www.sitepoint.com/whats-new-firefox-35/
https://developer.mozilla.org/en-US/docs/Web/CSS/filter
*/

BODY
{
  margin: 0px auto;
  max-width: 600px;
}

FIGURE
{
  width: 500px;
  height: 281px;
}
            
          
!
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