Hi there, I'm currently utilizing the transform: scale(); property on a website and could use some assistance with a particular issue I haven't been able to find an answer for online.
Here is the code snippet I'm working with: HTML:
<div class="hopp_circle_img">
<img src="..." alt="" />
</div>
CSS:
.hopp_circle_img {
position: relative;
width: 100% !important;
height: 100% !important;
max-width: 100% !important;
max-height: 100% !important;
overflow: hidden;
-webkit-border-radius: 50%;
border-radius: 50%;
z-index: 0;
}
.hopp_circle_img img {
-webkit-transition: transform 0.15s;
transition: transform 0.15s;
}
.hopp_circle_img img:hover {
display: block;
z-index: 100;
-webkit-transform: scale(1.25);
transform: scale(1.25);
}
The current effect works well, but I have been tasked with creating a different scaling behavior when the cursor enters versus exits. For example, scaling quickly on mouse-in but slowly on mouse-out. Is there a solution for achieving this using CSS3 or Javascript?
Thank you, rabox