I want to use scoll images or div's when i was resize the window, but it actually does not work. the only the part of scoll is working when i write it seperately. Anyone here to help?
$(window).resize(function() { if ($(window).width() >= 767) { $(window).scroll(function() { $(".careers-philosophy__image").css({ "bottom": ($(window).scrollTop()/15) + "px" }); $(".careers-philosophy__image2").css({ "bottom": ($(window).scrollTop()/25) + "px" }); $(".carrer-block").css({ "bottom": ($(window).scrollTop()/10) + "px" }); $(".fast").css({ "bottom": ($(window).scrollTop()/5) + "px" }); }); } });