Image Hover Zoom Effect

Size
2,052 Kb
Views
30,360

How do I make an image hover zoom effect?

What is a image hover zoom effect? How do you make a image hover zoom effect? This script and codes were developed by Deyan Dimitrov on 13 November 2022, Sunday.

Image Hover Zoom Effect Previews

Image Hover Zoom Effect - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Image Hover Zoom Effect</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1>Image Text Hover Effect</h1>
<ul> <li> <a href="#"><span class="fade-caption">YO!</span></a> <img src="https://static.pexels.com/photos/1106/sea-sky-beach-holiday.jpg" /> </li> <li> <a href="#"><span>YO!</span></a> <img src="http://progressive-retail.com/files/projects/fix_mix.jpg" /> </li> <li> <a href="#"><span>YO!</span></a> <img src="https://static.pexels.com/photos/518/snow-sea-mountains-clouds.jpg" /> </li> <li> <a href="#"><span>YO!</span></a> <img src="http://www.fun92.org/wallpapers/wp-content/uploads/Nature-Wallpapers-Free-Download.jpg" /> </li>
</ul>
</body>
</html>

Image Hover Zoom Effect - Script Codes CSS Codes

body {
margin: 25px auto;
background:#f8f8f8;
text-align:center; font-family: sans-serif;
}
h1 {
color:#375757;
}
ul{ text-align:center;
}
li {
display: inline-block;
position: relative;
margin:5px;
list-style-type: none;
}
a {
display: block;
position: absolute;
width: 100%;
height: 98%;
background: #333;
opacity: 0;
font: 300 36px helvetica, sans-serif; color: #fff;
text-decoration: none;
-webkit-transition: all .3s;
transition: all .3s;
}
a:hover {
opacity: 0.7;
}
span {
display:block; padding:80px 0 0;
line-height: 1;
text-align:center;
}
li { cursor: pointer; height: 200px; float: left; margin: 5px; position: relative; overflow: hidden; width: 300px;
}
li img { position: absolute; left: 0; -webkit-transition: all 300ms ease-out; -moz-transition: all 300ms ease-out; -o-transition: all 300ms ease-out; -ms-transition: all 300ms ease-out; transition: all 300ms ease-out;
} li:hover img { -moz-transform: scale(1.4); -o-transform: scale(1.4); -webkit-transform: scale(1.4); transform: scale(1.4);
}
img {
width:300px;
height:200px;
}
li span{ opacity: 0; width: 170px; height: 170px; text-align: left; padding: 15px;
}
li:hover span { opacity: 1;
}
Image Hover Zoom Effect - Script Codes
Image Hover Zoom Effect - Script Codes
Home Page Home
Developer Deyan Dimitrov
Username deyand
Uploaded November 13, 2022
Rating 3
Size 2,052 Kb
Views 30,360
Do you need developer help for Image Hover Zoom Effect?

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!

Deyan Dimitrov (deyand) Script Codes
Create amazing marketing copy with AI!

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!