Search
 
SCRIPT & CODE EXAMPLE
 

CSS

increase the size of an image on hover using css

img { 
	transition: all .2s ease-in-out; 
}
img:hover { 
    	transform: scale(1.5); 
    }
Comment

resize image slowly on hover

.grow { 
	transition: all .2s ease-in-out; 
}
	.grow:hover { 
    	transform: scale(1.1); 
    }
Comment

hover scale img

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Học Web Chuẩn</title>
<style>
* { /* reset lại margin và padding cho các tag */
    margin: 0;
    padding: 0;
}
img { vertical-align:middle; }
.box-zoom-out {
    border: 1px solid #CCC;
    height: auto;
    margin: 10px auto;
    overflow: hidden;
    position: relative;
    width: 200px;
}
.box-zoom-out img {
    max-width: 100%;
    transition: all 1s;
    -webkit-transform: scale(1);
            transform: scale(1);
}
.box-zoom-out:hover img {
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
}
</style>
</head>
<body>
<div class="box-zoom-out">
<img src="https://hocwebchuan.com/images/chuyende/bnr_product01.jpg" alt="">
</div>
</body>
</html>
Comment

PREVIOUS NEXT
Code Example
Css :: how to get font awesome outline 
Css :: move element to the left css 
Css :: white rgb 
Css :: shadow on top for scroll 
Css :: two background css 
Css :: dont break word css 
Css :: white border css 
Css :: lightred color hex 
Css :: send mails from lampp form localhost 
Css :: steps() property css 
Css :: html css first list item font bold 
Css :: on hover chang only border color of a button css 
Css :: make blinking cursor disappear css 
Css :: rgba blue color 
Css :: css invert text color 
Css :: animate font weight css 
Css :: html5 video hide progress bar 
Css :: how to change paragraph text color to orange - css 
Css :: center text horizontally and vertically inside a div in css 
Css :: convert string to uppercase while typing 
Css :: bootstrap word-wrap: break-word; 
Css :: css selector every child except last 
Css :: css transform border radius 
Css :: min padding 
Css :: css put span on new line 
Css :: how to use gradient on font css? 
Css :: css overflow elipsis 
Css :: how to set fallback font in css 
Css :: avoid side scrolling css 
Css :: wrap none css 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =