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 7062629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:37:01+00:00 2026-05-28T04:37:01+00:00

Got a page based on Google Wave (http://wave.google.com/maintenance/index.html) but instead of clouds going left

  • 0

Got a page based on Google Wave (http://wave.google.com/maintenance/index.html)

but instead of clouds going left to right I wanted right to left so I swapped all references to ‘left’ to ‘right’:

#cloud

position: absolute;
left: 5%;
top: 15px;
z-index: 2;
width: 120px;
height: 91px;
background-image: url(../images/cloud.gif);
background-repeat: no-repeat;

becomes:

#cloud1

position: absolute;
right: 60%;
top: 115px;
z-index: 2;
width: 150px;
height: 163px;
background-repeat: no-repeat;

And the JS call is:

function cloud1Move()
{
    if (!cloud1Moved)
    {
        $("#cloud1").css("right", $("#cloud1").offset().right)
    }
    $("#cloud1")
    .animate(
    {
        right: $("#sky").width()
    },
    cloud1Moved ? 12000 : 10000,
    "linear",
    function()
    {
        $(this).css("right", -parseInt($(this).css("width")))
        cloud1Moved = true;
        cloud1Move();
    }
  );
}

This was working in FF but Chrome/Safari seems to bunch all the elements on the right side of the screen on load and then animate right to left. Once they leave the screen on the left they work as expected. It is just the initial load that is not what I expected.

If I just use left->right then they are rendered correctly in place across the screen and behave as expected.

Any insights on what I am doing incorrect (probably in the JS call)

Thanks,
Rob

  • 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-28T04:37:02+00:00Added an answer on May 28, 2026 at 4:37 am

    Well… $(“#cloud1”).offset() does not return an object with the property “right”, only “left” and “top”.

    http://api.jquery.com/offset/

    Better use:

     $("#cloud1").css("left", $("#cloud1").offset().left)
    

    And in your css too.

    left: 40%;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to publish my ASP.net based web page on Windows 7 machine.But,I got
I've got a Django-based site that allows users to register (but requires an admin
I've got an HTTPModule that does some role-based page access security (I'm having to
I've got a css-based horizontal drop down menu that works perfectly well, but I'm
I am writing a Google extension. Here my content script modifies a page based
I've read some topics regarding enabling google to crawl ajax based sites but the
I've got aspx page which dynamically loads UserControl into a Panel object based on
i got a page users downloading files from there.And when a user click download
I've got a page with a normal form with a submit button and some
I've got a page layout for a publishing site with an odd behaviour. Imagine

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.