Need help fixing the parallax effect on this page. I attempted to implement a parallax effect but encountered some issues.
Here is the JavaScript code:
$objWindow = $(window);
$('section[data-type="background"]').each(function(){
var $bgObj = $(this);
$(window).scroll(function() {
console.log(11);
var yPos = -($objWindow.scrollTop() / $bgObj.data('speed'));
var coords = '100% '+ yPos + 'px';
console.log(coords);
$bgObj.css({ backgroundPosition: coords});
});
However, there seems to be an issue where the y-coordinate in the #apex background block does not change when scrolling.