Currently, I am experimenting with a feature for my website where I want images to switch upon hover. While I have successfully achieved the image switch on hover, I am looking to create smooth transitions between the switches, with the second image being zoomed in.
I came across a website that has exactly the effect I am trying to replicate on mine. Unfortunately, my attempts have been unsuccessful so far due to my beginner-level knowledge of stylings involving Transitions & Transforms. Can anyone provide guidance on how to achieve this? Thank you in advance!
Reference website: Check out the "Sherbat-e-Mohabbat" section on this website, where the desired effect occurs when hovering over an image [Screenshot: https://prnt.sc/1tl7aje]
Here is a snippet of my code structure:
<div class="image-wrapper">
<div class="primary-image">
<img class="img" src="src_url">
</div>
<div class="secondary-image">
<img class="img" src="secong_src_url">
</div>
</div>