Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6028663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:46:24+00:00 2026-05-23T04:46:24+00:00

Bre.ad has this background where it keeps moving and there is an illusion of

  • 0

Bre.ad has this background where it keeps moving and there is an illusion of a baker’s truck moving on the road. I was wondering how that was done and can it be done so that the image is moving vertically instead of horizontally?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T04:46:25+00:00Added an answer on May 23, 2026 at 4:46 am

    The entire background is this long png file, and the city scapes and clouds are transparent background pngs that are layered over it in multiple divs.

    Background (Town):

    Background

    CityScape:

    Cityscape

    The relevant HTML from the page source:

    <div id="bread-world">
        <div id="puffyclouds" style="background-position: 0 -75px"></div>
        <div id="cityscape" style="background-position: 0 105px;"></div>
        <div id="ocean"></div>
        <div id="town" style="background-position: 0 0;"></div>
        <div id="truck"></div>
    </div>
    

    and the relevant CSS from all.css

    #town{
        background:url('//bread-images.s3.amazonaws.com/invite/town.png?1308363721') 
        repeat-x 542px 0px;
        width:5806px;
        left:0;
        bottom:0;
        height:599px;
        position:absolute
        }
    

    and similarly for the other divs. The repeat-x property is used to repeat the background so as to mimic the effect of continuous scrolling. Also, the left end of the image and the right end line up, so as to give a smooth transition.

    The animation is done by homepage.js which slowly shifts the background-position linearly. The relevant lines are:

    function r(){
        m.css({backgroundPosition:"0 -75px"}).animate({backgroundPosition:q+"px -75px"},{duration:n,easing:"linear"}),
        k.css({backgroundPosition:"0 0"}).animate({backgroundPosition:o+"px 0"},{duration:n,easing:"linear"}),
        l.css({backgroundPosition:"0 105px"}).animate({backgroundPosition:p+"px 105px"},{duration:n,easing:"linear",complete:r})
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an orchestration in BizTalk that has a CallRules shape in it. The
I'm writing an application following this tutorial . I'm aware that this tutorial dates,
Either my debugger is broken or there's something fundamental that I am not understanding.
My organization has recently been wrestling the question of whether we should be incorporating
I am looking for a way to import BRE generated policy with its vocabularies
I’m having trouble getting a AJAX/JSON function to work correctly. I had this function
I’m having trouble getting a AJAX/JSON function to work correctly. I had this function
I want to have a regular expression that finds the texts that are wrapped
I have gallery.php that loads images with src path from a database. I also
Is there a list of Regex implementations on the web, showing their differences /

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.