We would like to know how to change border radius size when hover.
<!--from w ww .j av a2 s .c om-->
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.circle {
width: 200px;
height: 200px;
border-radius: 12px;
border: 1.5px solid #000;
color: white;
line-height: 20px;
text-align: center;
background: #fff;
position: relative;
z-index: 1;
}
.circle:before {
position: absolute;
right: 2px;
top: 2px;
left: 2px;
bottom: 2px;
content: '';
background: #3E78B2;
border-radius: 25px;
z-index: -1;
}
.circle:hover {
width: 200px;
height: 200px;
border-radius: 18px;
font-size: 12px;
color: white;
line-height: 27px;
text-align: center;
background: #fff;
}
</style>
</head>
<body>
<div class="container">
<div class="circle">11</div>
</div>
</body>
</html>
The code above is rendered as follows: