• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

As is this done?

Onimua

Well-known member
#3
It looks like it's using a bit of jQuery magic.
HTML:
    <script type="text/javascript">
    $(document).ready(function($){

        var backgroundpos = 0;
        var offset = 1;
        function scrollbackground() {
        offset = (offset < 1) ? offset + (backgroundpos - 1) : offset - 1;
          $('.branding').css("background-position",  + offset + "px 0");
          setTimeout(function() {
            scrollbackground();
            }, 100
        );
          }
        scrollbackground();

    });
    </script>