We would like to know how to enlarge circle Animation.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
@-webkit-keyframes pulsate {<!-- w ww .j av a 2s . c o m-->
from { -webkit-transform:scale(0.7);}
to {-webkit-transform: scale(0.8);}
}
.ball {
background: red;
width: 100px;
height: 100px;
border-radius: 50%;
-webkit-transform: scale(0.7);
-webkit-transform-origin: center center;
-webkit-animation-duration: 800ms;
-webkit-animation-name: pulsate;
-webkit-animation-delay: 1s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-direction: alternate;
-webkit-animation-timing-function: ease-in-out;
transition: all 1s 0.01s;
}
.ball:hover {
-webkit-transform: scale(2);
-webkit-animation: 0;
}
</style>
</head>
<body>
<div class="ball"></div>
</body>
</html>
The code above is rendered as follows: