Give help. Get help.

  • # January 12, 2013 at 1:08 am

    Hi everyone!
    In the Auto-moving parallax background, animation is not working.
    It was mentioned here,

    that “before we fire off the animation we have to reset the backgroundPosition within the JavaScript”.

    Exactly how do I do that? Can anyone help me with this?

    # January 12, 2013 at 11:24 pm

    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.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.