I am trying to recreate the image zoom out effect like the one on the mrpops.ua website. I have tried alot of different ways to recreate it but I am unable to do it can anyone give me some tips on how they would try to recreate it.
On wheel event increase counter for each wheel. Then switch case evaluates the different counter value and adds the animation of scaling the image down or up based on the count. If i scroll down count +1 and up count -1. Switch case 1: headerImg.style.animation = 'scaleDown 2s ease forwards'