I have simple animation with CSS on hover. My issue is when I hover on box first in animation is not smooth but animation out is smooth.
So I need make this animation smooth when I hover on it.
.zoom {
display: flex;
justify-content: center;
}
.zoom .box{
padding: 16px;
transition: transform .6s;
}
.zoom .box:hover {
transform: scale(1.2);
background-color: #BD8A3B;
transition: background-color .6s ease;
}
.box {
width: 200px;
height: 600px;
background-color: #DACDBD;
}
<section class="zoom">
<div class="box">
<span class="bold">Pwinw wjdnw wndi</span>
<span class="number">5,5 % - 6,6%</span>
<span class="light">dwjndwj dwjndw dw</span>
<span class="bold">wdjwndk wdniwd knj</span>
</div>
</section>