Simple hover effects with CSS(webkit) filters
How do I make an simple hover effects with css(webkit) filters?
What is a simple hover effects with css(webkit) filters? How do you make a simple hover effects with css(webkit) filters? This script and codes were developed by Mariam Massadeh on 22 September 2022, Thursday.
Simple hover effects with CSS(webkit) filters - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Simple hover effects with CSS(webkit) filters</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <!-- Lets make some simple hover effects with CSS3 Filters -->
<div id="gallery"> <a href="#"> <!-- Title and classes --> <span class="title">Saturate</span> <img src="http://thecodeplayer.com/uploads/media/forest.jpg" class="saturate" /> </a> <a href="#"> <span class="title">Grayscale</span> <img src="http://thecodeplayer.com/uploads/media/lake.jpg" class="grayscale" /> </a> <a href="#"> <span class="title">Contrast</span> <img src="http://thecodeplayer.com/uploads/media/tree.jpg" class="contrast" /> </a> <a href="#"> <span class="title">Brightness</span> <img src="http://thecodeplayer.com/uploads/media/leaves.jpg" class="brightness" /> </a> <a href="#"> <span class="title">Blur</span> <img src="http://thecodeplayer.com/uploads/media/redflower.jpg" class="blur" /> </a> <a href="#"> <span class="title">Invert</span> <img src="http://thecodeplayer.com/uploads/media/zebra.jpg" class="invert" /> </a> <a href="#"> <span class="title">Sepia</span> <img src="http://thecodeplayer.com/uploads/media/tree2.jpg" class="sepia" /> </a> <a href="#"> <span class="title">Hue-rotate</span> <img src="http://thecodeplayer.com/uploads/media/landscape.jpg" class="huerotate" /> </a> <a href="#"> <span class="title">Opacity</span> <img <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
Simple hover effects with CSS(webkit) filters - Script Codes CSS Codes
/*Styles*/
* { margin: 0; padding: 0;}
body { font-family: arial, verdana, tahoma; background: url('http://thecodeplayer.com/uploads/media/pxpat.png');
}
#gallery { width: 725px; margin: 25px auto;
}
#gallery a { display: block; float: left; margin-bottom: 25px; position: relative; -webkit-box-shadow: 0 2px 15px 1px rgba(0, 0, 0, 0.5); -moz-box-shadow: 0 2px 15px 1px rgba(0, 0, 0, 0.5); box-shadow: 0 2px 15px 1px rgba(0, 0, 0, 0.5);
}
/*Left and Right margins to images in the middle column*/
/*This selects the 2nd, 5th and 8th elements*/
#gallery a:nth-child(3n+2) { margin: 0 25px 25px 25px;
}
#gallery a img { display: block; -webkit-transition: all 0.5s;
}
/*Hover effects*/
#gallery a img:hover { -webkit-filter: none; /*Returns to default state*/
}
/*Default state for brightness has to be specified specifically*/
#gallery a img.brightness:hover { -webkit-filter: brightness(0);
}
/*Title styles*/
.title { color: #fff; font-size: 13px; font-weight: bold; position: absolute; left: 0; bottom: 15px; z-index: 1; padding: 5px 7px; background: rgba(0, 0, 0, 0.6);
}
/*Filter styles*/
.saturate {-webkit-filter: saturate(3);}
.grayscale {-webkit-filter: grayscale(100%);}
.contrast {-webkit-filter: contrast(160%);}
.brightness {-webkit-filter: brightness(0.25);}
.blur {-webkit-filter: blur(3px);}
.invert {-webkit-filter: invert(100%);}
.sepia {-webkit-filter: sepia(100%);}
.huerotate {-webkit-filter: hue-rotate(180deg);}
.opacity {-webkit-filter: opacity(50%);}
Developer | Mariam Massadeh |
Username | MariamMassadeh |
Uploaded | September 22, 2022 |
Rating | 3 |
Size | 2,320 Kb |
Views | 30,360 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Responsive Text Area with timer, counter and history | 4,527 Kb |
Coming Soon | 1,680 Kb |
Qoute | 2,776 Kb |
CSS3 Animation | 4,351 Kb |
Emploee Tree | 3,670 Kb |
A Pen by Mariam Massadeh | 3,981 Kb |
Html5-canvas-snow-effect | 2,609 Kb |
Receipt with result | 2,774 Kb |
Css3-image-slider-with-stylized-thumbnails | 2,576 Kb |
Responsive Menu with sub menu- CSS3 animation, simple jquery | 3,663 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Scroll to view if element partially out of view port height | ChrisMaki | 2,104 Kb |
A Pen by Ben Babics | Benbabics | 2,957 Kb |
Mondrian | Chrisarmstrong | 2,787 Kb |
Portfolio Page | HuffmanJ25 | 5,240 Kb |
Animating characters with jQuery | 042 | 2,776 Kb |
RSW | JordanC | 3,726 Kb |
Mobile Sub Menu Concept | Berdejitendra | 2,790 Kb |
HTM5 picture dropzone | Jaysalvat | 2,576 Kb |
Button Option Group | Honchoman | 1,859 Kb |
Basic HTML Slideshow | Tomhodgins | 3,386 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!