We would like to know how to enlarge image in animation.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
a img {<!--from w w w . j a v a 2 s.com-->
-webkit-transition: -webkit-transform 0.3s ease;
-moz-transition: -moz-transform 0.3s ease;
-o-transition: -o-transform 0.3s ease;
transition: transform 0.3s ease;
}
a:hover img {
-webkit-transform: scale(1.5);
-moz-transform: scale(1.5);
-o-transform: scale(1.5);
transform: scale(1.5);
-webkit-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
-o-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
}
</style>
</head>
<body>
<a href="#"><img
src="http://placehold.it/50x50"></a>
</body>
</html>
The code above is rendered as follows: