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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:50:03+00:00 2026-06-01T02:50:03+00:00

I would like to be able to set some animations on a set of

  • 0

I would like to be able to set some animations on a set of divs.

Here is what I have so far:

$(".nextwp").click(function(){
    $('.welcome').animate({
        left: "-9999px"
    }, 8500);
    $('.welcome').animate({
        right: "-=9999px"
    }, 0);

    $('.work').animate({
        right: "+0px"
    }, 1300);
});

I want the .welcome class div to move to the left for a duration of 8.5 seconds until it is hidden from view. Then I need to reset it’s position to right of -9999px. It is not reseting for some reason. Am I going about this the right way? Once it’s position is set to -9999px I need the work class div to slide in from the right.

Let me know if you need more info.

The problem is that the welcome class div never gets it’s position set to -9999px for some reason.

Thanks in advance.

(basically a simple custom slider)

  • 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-06-01T02:50:04+00:00Added an answer on June 1, 2026 at 2:50 am

    Well, if you think about this approach what you’re really telling it to do is to animate 9999px in 8.5 seconds, I wouldn’t expect this to behave consistently.

    The easy option would be to use the effects module of jQuery UI and use $el.show('slide').

    If you want something custom, then your best bet would be to create a container with overflow: hidden and slide the element till it gets out of view. This would be far more predictable and will perform way better.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table and I would like to be able to set up
Would like to be able to set colors of headings and such, different font
I would like to be able to, as part of a maven build, set
Given a simple data set, I would like to be able to calculate a
I would like to be able to display some dynamic text at the mouse
When rasterizing svg file, I would like to be able to set width and
I would like to be able to run some kind of a show plan
I would like to run a set of methods given some data. I was
I would like to be able to read and write (get and set) certain
I would like to be able to set a background on our homepage which

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.