CSS filter color overlay on image hover examples

I think you know in today’s modern web designing there are numbers of techniques that can be used to create interesting image hover effects. this is possible through CSS which allows us to achieve this through it’s light weight code structure and also specifically the additions that came with CSS3.

Here we are going to cover a great new features of CSS3 called CSS filters.
This is a new feature that can be used on both HTML elements and images, but according to me it will be best if it is used on images to create interesting effects on image galleries. Hope you will enjoy and love it.

Using Below CSS code you can create all these effects on images.

  1. Greyscale Effect
  2. Blur Effect
  3. Saturate Effect
  4. Sepia Effect
  5. Hue Rotate Effect
  6. Invert Effect
  7. Brightness Effect
  8. Contrast Effect

Greyscale Effect

Here i am writing common CSS classes for all effects.

<style>
.effect1, .effect2, .effect3, .effect4, .effect5, .effect6, .effect7, .effect8 {
    border: 10px solid #fff;  
    float: left;
    height: 200px;
    width: 200px;
    margin: 14px;
    overflow: hidden;
    cursor:pointer;
    -webkit-box-shadow: 1px 2px 5px 5px #111;
    -moz-box-shadow: 1px 2px 5px 5px #111;
    -o-box-shadow: 1px 2px 5px 5px #111;
    -ms-box-shadow: 1px 2px 5px 5px #111;
    box-shadow: 1px 2px 5px 5px #111;
    
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -o-transition: all 1s ease;
    -ms-transition: all 1s ease;
    transition: all 1s ease;
}

.effect1:hover {
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);  
    -o-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
}
</style>

<img class="effect1" src="http://www.phpkida.com/wp-content/uploads/2017/01/wordpress-theme-development.jpg" alt="CSS filter color overlay on image hover examples" />

Blur Effect

<style>
.effect2:hover {
	filter: blur(5px);
	-webkit-filter: blur(5px);
	-moz-filter: blur(5px);
	-o-filter: blur(5px);
	-ms-filter: blur(5px);
}
</style>

<img class="effect2" src="http://www.phpkida.com/wp-content/uploads/2017/01/wordpress-theme-development.jpg" alt="CSS filter color overlay on image hover examples" />

Saturate Effect

<style>
.effect3:hover {
	filter: saturate(500%);
	-webkit-filter: saturate(500%);
	-moz-filter: saturate(500%);
	-o-filter: saturate(500%);
	-ms-filter: saturate(500%);
}
</style>

<img class="effect3" src="http://www.phpkida.com/wp-content/uploads/2017/01/wordpress-theme-development.jpg" alt="CSS filter color overlay on image hover examples" />

Sepia Effect

<style>
.effect4:hover {
	filter: sepia(1);
	-webkit-filter: sepia(1);
	-moz-filter: sepia(1);
	-o-filter: sepia(1);
	-ms-filter: sepia(1);
}

</style>

<img class="effect4" src="http://www.phpkida.com/wp-content/uploads/2017/01/wordpress-theme-development.jpg" alt="CSS filter color overlay on image hover examples" />

Hue Rotate Effect

<style>
.effect5:hover {
	filter: hue-rotate(180deg);
	-webkit-filter: hue-rotate(180deg);
	-moz-filter: hue-rotate(180deg);
	-o-filter: hue-rotate(180deg);
	-ms-filter: hue-rotate(180deg);
}

</style>

<img class="effect5" src="http://www.phpkida.com/wp-content/uploads/2017/01/wordpress-theme-development.jpg" alt="CSS filter color overlay on image hover examples" />

Invert Effect

<style>
.effect6:hover {
	filter: invert(1);
	-webkit-filter: invert(1);
	-moz-filter: invert(1);
	-o-filter: invert(1);
	-ms-filter: invert(1);
}
</style>

<img class="effect6" src="http://www.phpkida.com/wp-content/uploads/2017/01/wordpress-theme-development.jpg" alt="CSS filter color overlay on image hover examples" />

Brightness Effect

<style>
.effect7:hover {
	filter: brightness(50%);
	-webkit-filter: brightness(50%);
	-moz-filter: brightness(50%);
	-o-filter: brightness(50%);
	-ms-filter: brightness(50%);
}
</style>

<img class="effect7" src="http://www.phpkida.com/wp-content/uploads/2017/01/wordpress-theme-development.jpg" alt="CSS filter color overlay on image hover examples" />

Contrast Effect

<style>
.effect8:hover {
	filter: contrast(0.3);
	-webkit-filter: contrast(0.3);
	-moz-filter: contrast(0.3);
	-o-filter: contrast(0.3);
	-ms-filter: contrast(0.3);
}

</style>

<img class="effect8" src="http://www.phpkida.com/wp-content/uploads/2017/01/wordpress-theme-development.jpg" alt="CSS filter color overlay on image hover examples" />

You Can View Demo and download Source Code of This Tutorial

If You have any question and problem in this code feel free, leave comment below! SHARE WITH YOUR FRIENDS..

Leave a Reply

Related Posts: You may like

Rotating Words with CSS Animations

Pure CSS Loader and spinners animation

Pure css drop down menu

Pure css dropdown navigation bar

PHPKIDA Offering Free Tools:

INSTA DOWNLOADER

Download Instagram Videos & Photos.

Download Now

CURRENCY CONVERTER

Real Time Currency Converter

Convert Now

ROBOST.TXT GEN.

Robots.txt File Creater

Create Now

HTML MINIFIER

Compress yout HTML Code

Minify Now

CSS MINIFIER

Compress yout CSS Code

Minify Now

JAVASCRIPT MINIFIER

Compress yout JavaScript Code

Minify Now

Sign up for weekly update

Milkshake is almost ready. If you're interested in testing it out, then sign up below to get exclusive access.