I've encountered an issue while developing a parallax website. One of the design elements involves the background size increasing as you scroll. Initially, I used a snippet solution for adjusting the background position like this:
var x = $window.scrollTop();
$('.stage.intro').css('background-size', '10' + parseInt(x / 10, 0) + '% ');
While this worked well initially, once the scroll reached the 109th percent, the background started looking distorted. How can I address this issue? Here's a demo link for reference.