Image Hover Effects
How do I make an image hover effects?
A collection of Image Hover Effects. What is a image hover effects? How do you make a image hover effects? This script and codes were developed by Kw7oe on 24 November 2022, Thursday.
Image Hover Effects - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Image Hover Effects</title> <link href='https://fonts.googleapis.com/css?family=Montserrat:700|Julius+Sans+One|Open+Sans' rel='stylesheet' type='text/css'> <link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class = "container"> <div class = "row text-center"> <h1>Image Hover Effect</h1> </div> <h2>CSS3 Filter Effect</h2> <div class = "row"> <a href = "#" class = "column col-xs-6" id = "sepia"><img src = "https://mir-s3-cdn-cf.behance.net/project_modules/max_1200/041ba526957515.56361c211db4e.png"><p>Sepia</p></a> <a href = "#" class = "column col-xs-6" id = "grayscale"><img src = "https://mir-s3-cdn-cf.behance.net/project_modules/max_1200/ff8a2426957515.56361c212331c.png"><p>Grayscale</p></a>
</div> <h2>CSS3 Transform Effect</h2> <div class = "row"> <a href = "#" class = "column col-xs-6" id = "zoomIn"><figure><img src = "https://upload.wikimedia.org/wikipedia/commons/1/19/Thunderstorm_in_sydney_2000x1500.png"></figure><p>Zoom In</p></a> <a href = "#" class = "column col-xs-6" id = "zoomOut"><figure><img src = "https://upload.wikimedia.org/wikipedia/commons/3/3c/GoldenMedows.jpg"></figure><p>Zoom Out</p></a>
</div> <h2>3D Hover Effect</h2> <div class = "row"> <div class = "tdimension"> <a href = "#"> </a> </div> </div> <h2>Hover Effect With Caption</h2> <div class = "row"> <a href = "#" class = "column col-xs-6" id = "caption"><span class = "text"><h1>Thunder</h1></span><img src = "https://upload.wikimedia.org/wikipedia/commons/1/19/Thunderstorm_in_sydney_2000x1500.png"></a> <div class = "frame col-xs-6"> <img src = "https://pbs.twimg.com/profile_images/378800000601617732/9e87878ffdd67333ac8b81f9da22696a_400x400.jpeg"> <div class = "details"> <h1>Lorem</h1> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam lorem nunc, sollicitudin a nisi sodales, imperdiet dignissim enim. Nam sapien quam</p> </div> </div>
</div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Image Hover Effects - Script Codes CSS Codes
body { background: #ECECEC;
}
.container { max-width: 720px; margin: 24px auto 48px auto;
}
h1 { font-family: 'Montserrat', sans-serif; text-transform: uppercase;
}
h2 { font-family: 'Julius Sans One', sans-serif; font-size: 2.5rem;
}
.row { margin-top: 12px;
}
.column { display: inline-block; text-align: center;
}
figure { overflow: hidden;
}
a p { color: black; margin-top: 8px; font-family: 'Open Sans', sans-serif;
}
a:hover { text-decoration: none;
}
.column img { display: block; width: 100%; height: 300px;
}
/* CSS Image Hover. Created refering to Naoya's Pen: https://codepen.io/nxworld/pen/ZYNOBZ */
/*Sepia*/
.column#sepia img { -webkit-filter: sepia(100%); filter: sepia(100%); -webkit-transition: .3s ease-in-out; transition: .3s ease-in-out;
}
.column#sepia:hover img { -webkit-filter: sepia(0); filter: sepia(0);
}
/*GrayScale*/
.column#grayscale img { -webkit-filter: grayscale(100%); filter: grayscale(100%); -webkit-transition: .3s ease-in-out; transition: .3s ease-in-out;
}
.column#grayscale:hover img { -webkit-filter: grayscale(0); filter: grayscale(0);
}
/*Zoom In*/
.column#zoomIn img { -webkit-transform: scale(1); transform: scale(1); -webkit-transition: .3s ease-in-out; transition: .3s ease-in-out;
}
.column#zoomIn:hover img { -webkit-transform: scale(1.3); transform: scale(1.3);
}
/*Zoom Out*/
.column#zoomOut img { -webkit-transform: scale(1.5); transform: scale(1.5); -webkit-transition: .3s ease-in-out; transition: .3s ease-in-out;
}
.column#zoomOut:hover img { -webkit-transform: scale(1); transform: scale(1);
}
/* 3D Transform. Craeted refering to Dudley Storey's Pen: https://codepen.io/dudleystorey/pen/KFLJp */
.tdimension { width: 300px; height: 300px; margin: 20px auto 40px auto; perspective: 1000px;
}
.tdimension a { display: block; width: 100%; height: 100%; background: url("https://mir-s3-cdn-cf.behance.net/project_modules/disp/e8346826957515.56361c2106f3f.png"); background-size: cover; transform-style: preserve-3d; transform: rotateX(70deg); transition: all 0.8s;
}
.tdimension:hover a { transform: rotateX(20deg);
}
.tdimension a:after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 40px; background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1)); transform: rotateX(90deg); transform-origin: bottom;
}
/*With Simple Caption*/
.column#caption { position: relative;
}
.column#caption .text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10; opacity: 0; transition: all 0.8s ease;
}
.column#caption .text h1 { margin: 0; color: white;
}
.column#caption:hover .text { opacity: 1;
}
.column#caption:hover img { -webkit-filter: sepia(90%);
}
/* Craeted refering to LittleSnippets.net Pen: https://codepen.io/littlesnippets/pen/adLELd */
.frame { text-align: center; position: relative; cursor: pointer; perspective: 500px;
}
.frame img { width: 300px; height: 300px;
}
.frame .details { width: 70%; height: 80%; padding: 5% 8%; position: absolute; content: ""; top: 50%; left: 50%; transform: translate(-50%, -50%) rotateY(90deg); transform-origin: 50%; background: rgba(255,255,255,0.9); opacity: 0; transition: all 0.4s ease-in;
}
.frame:hover .details { transform: translate(-50%, -50%) rotateY(0deg); opacity: 1;
}
Image Hover Effects - Script Codes JS Codes
/* Image Credit:
- http://www.junedigann.com/
- https://commons.wikimedia.org/wiki/Main_Page
*/
Developer | Kw7oe |
Username | kw7oe |
Uploaded | November 24, 2022 |
Rating | 4 |
Size | 3,497 Kb |
Views | 16,192 |
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 |
A Pen by kw7oe | 2,477 Kb |
Image Hover Effects with CSS3 transform | 2,915 Kb |
Simple 3D Image Slider | 2,483 Kb |
Image Slider | 2,131 Kb |
Simple Image Slider | 2,786 Kb |
Responsive Navigation Bar with Bootstrap | 2,133 Kb |
Image Gallery | 3,040 Kb |
Tic Tac Toe | 3,793 Kb |
Weather App | 3,162 Kb |
Navigation Bars | 3,174 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 |
Basic HTML Slideshow | Tomhodgins | 3,386 Kb |
Mario | Takaneichinose | 3,902 Kb |
Owl Carousel - jumpTo | OwlFonk | 2,553 Kb |
Atom | Bhlaird | 1,932 Kb |
DFF Website | Hawcubite | 10,123 Kb |
See Through | Larrygeams | 77,410 Kb |
Test | Dviate | 2,668 Kb |
Spin | Elalemanyo | 8,262 Kb |
Personal Logo Animation | Lloydwheeler | 3,795 Kb |
FreeCodeCamp - Simon Game | Ivhed | 8,481 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!