Home › Forums › CSS › Auto-moving parallax background animation not working › Re: Auto-moving parallax background animation not working
January 12, 2013 at 11:24 pm
#120842
Mottie
Member
Hi @pkmathanraj!
The code is already in the example… this part of the code:
$(‘#midground’).css({backgroundPosition: ‘0px 0px’});
$(‘#foreground’).css({backgroundPosition: ‘0px 0px’});
$(‘#background’).css({backgroundPosition: ‘0px 0px’});
will reset the backgroundPosition.