Everything seems to be working fine on my desktop webpage, but when I try it on mobile, there is no scroll...
$("HTML, BODY").animate({
scrollTop: 500
}, 1000);
This post suggests that mobile devices may not scroll on the body, but on the viewport instead. Removing the viewport tag from my page fixes the issue...
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
However, I've seen pages with the viewport tag where the animation works perfectly, so I'm unsure of what the difference could be.