Pen Settings



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


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


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.


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.


  <h1>Simple CSS Image Filters</h1>
    <a href="" target="_blank">View Tutorial</a>

<main role="main">
 <ul class="grid">
   <li><img class="saturate" src=""/>
     Saturate: <code>filter: saturate(2);</code></li>
   <li><img class="hue" src=""/>
     Hue Rotate: <code>filter: hue-rotate(140deg);</code></li>
   <li><img class="invert" src=""/>
     Invert: <code>filter: invert(.8);</code></li>
      <li><img class="greyscale" src=""/>
     Grayscale: <code>filter: grayscale(1);</code></li>
   <li><img class="sepia" src=""/>
     Sepia: <code>filter: sepia(100%);</code></li>
   <li><img class="blur" src=""/>
     Blur: <code>filter: blur(5px);</code></li>
    <li><img class="darken" src=""/>
     Brightness: <code>filter: brightness(.5);</code></li>
   <li><img class="contrast" src=""/>
     Contrast: <code>filter: contrast(3);</code></li>
     <li><img class="all-the-things" src=""/>
     Combo: <code>filter: contrast(1.4) saturate(1.8) sepia(.6);</code></li>



                /* FILTERS */
  filter: grayscale(1);
    -webkit-filter: grayscale(1);    
  filter: sepia(100%);
    -webkit-filter: sepia(1);
    -ms-filter: sepia(100%);    
  filter: blur(5px);
   -webkit-filter: blur(5px);
    filter: saturate(2);
      -webkit-filter: saturate(2);
.hue {
    filter: hue-rotate(140deg);
      -webkit-filter: hue-rotate(140deg);
.invert {
    filter: invert(.8);
      -webkit-filter: invert(.8);
.darken {
    filter: brightness(.5);
      -webkit-filter: brightness(.5);
.contrast {
    filter: contrast(2);
      -webkit-filter: contrast(2);

.all-the-things {
    filter: contrast(1.4) saturate(1.8) sepia(.6);
      -webkit-filter: contrast(1.4) saturate(1.8) sepia(.6);
   filter: opacity(.7);
      -webkit-filter: opacity(.7);
  text-shadow: -1px -1px 0px #000;
/* Remove effect on Hover */
  filter: none;
  -webkit-filter: none;

/* Demo Styling */

/* Permalink - use to edit and share this gradient:,78d3c5+29,ff5c5c+100 */
background: #a7e2cc; /* Old browsers */
background: -moz-linear-gradient(-45deg,  #a7e2cc 0%, #78d3c5 29%, #ff5c5c 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(-45deg,  #a7e2cc 0%,#78d3c5 29%,#ff5c5c 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(135deg,  #a7e2cc 0%,#78d3c5 29%,#ff5c5c 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a7e2cc', endColorstr='#ff5c5c',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
  font-family: sans-serif;
  text-transform: uppercase;
  color: #FFF;
  margin: 0;
  max-width: 100%;
	color: #FFF;
	font-family: sans-serif;
	transition: all ease-in-out .3s;
  color: #0CF;

  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0 2% 2%;
  text-align: center;
.grid li{
  box-sizing: border-box;
  padding: 1rem;
  min-width: 1%;
  max-width: 420px;
.grid li img{
  transition: all .2s ease-in-out;
  -webkit-transition: all .2s ease-in-out;
   -moz-transition: all .2s ease-in-out;
   -o-transition: all .2s ease-in-out;
   transform: translateX(0);
  -webkit-transform: translateX(0);
/* General style */
  width: 100%;
  display: block;
  background: #FFF;
  height: 40px;
  margin-bottom: 4%;
  color: #ccc;
  font-family: sans-serif;
  font-weight: bold;
  box-shadow: 0px 2px 0px 0px rgba(125,121,125,0.3);
  overflow: hidden;
header h1, header a{
  display: inline-block;
  font-size: .8rem;
  margin: auto 10px;
  line-height: 40px;

header h1{
    text-transform: uppercase;
    letter-spacing: 1px;
header a{
  text-decoration: none;
  background-color: #eee;
  color: #999;
  padding: 0 20px;
  transition: all ease-in-out .3s;
header a:hover{
  background-color: #93dfec;
  color: #eee;
  margin-left: -3px;