We would like to know how to enlarge image Overflow hidden.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
#wrapper {<!--from w w w .java 2s . com-->
width: 300px;
height: 300px;
border-radius: 300px;
overflow: hidden;
border: solid 10px #000;
background-color: #f30;
z-index: 3;
}
#wrapper span {
width: 300px;
height: 300px;
top: 0;
background-color: red;
transition: all 0.5s;
z-index: 1;
overflow: hidden;
background-image:url(http://www.java2s.com/style/download.png);
background-repeat: no-repeat;
background-size: 100% 100%;
display: inline-block;
background-position: center center;
}
#wrapper:hover>span {
opacity: .5;
background-size: 120% 120%;
}
</style>
</head>
<body>
<div id="wrapper">
<span></span>
</div>
</body>
</html>
The code above is rendered as follows: