With this code when I scroll the page the image zoom but I want to set the point where the zoom goes. Help me
$(document).ready(function () {
$(window).scroll(function (){
const scroll = $(window).scrollTop();
$('.first-block img').css({
transform: 'translate3d(-50%, -'+(scroll/50) +'%,0) scale('+(100 + scroll/6)/100+')'
})
});
})