1
I’m trying to make an animation in CSS3 with zoom in, zoom out and Transition in CSS3 + HTML. What I want is that by hovering the mouse over the div, it will scale down to 0.9 and then increase to 1.1 in the same animation.
Follows CSS and HTML codes:
.abc
{
margin:1.5em;
background-color:#ff0;
border:0;
width:196px;
height:210px;
-webkit-transition: all 200ms ease-in;
-ms-transition: all 200ms ease-in;
-moz-transition: all 200ms ease-in;
transition: all 200ms ease-in;
}
.abc:hover
{
-webkit-transition: all 200ms ease-in;
-webkit-transform: scale(0.9);
-webkit-transform: scale(1.1);
-ms-transition: all 200ms ease-in;
-ms-transform: scale(0.9);
-ms-transform: scale(1.1);
-moz-transition: all 200ms ease-in;
-moz-transform: scale(0.9);
-moz-transform: scale(1.1);
transition: all 200ms ease-in;
transform: scale(0.9);
transform: scale(1.1);
}
<div class="abc">
</div>