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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:33:22+00:00 2026-06-12T07:33:22+00:00

On my page I run a show and hide effect with slide simultaneously on

  • 0

On my page I run a show and hide effect with slide simultaneously on different divs, but the animation lags a bit. If I run the show effect after the hide is done it doesn’t lag at all, so I’m wondering if there’s any way to make this lag go away.

Code without lag:

$(currentPageID).stop().hide("slide", {"direction": "left"}, 1000, function(){
    $(pageID).show("slide", {"direction": "right"}, 1000);
});

Code with lag:

$(currentPageID).hide("slide", {"direction": "left"}, 1000);
$(pageID).show("slide", {"direction": "right"}, 1000);
  • 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-12T07:33:23+00:00Added an answer on June 12, 2026 at 7:33 am

    This may not be lag so much as it is just an optical illusion based on your screen resolution, vs duration of animation vs how far it has to animate over the course of that duration. This is also in part due to the calculations of how to break down that duration to actual distance. If you animate across 1000px in one second, and you animate across 100px in one second using the same exact code, you will notice one is more choppy than the other as the chunks of distance vs duration are different.

    Again though resolution, refresh rates, and all else come into play as well. As does anything else you may have going on at the time

    The difference between the two code examples you provided is that one runs the direction right upon completing direction left waiting its turn. The other the way the code reads through goes one to the other with little to no pause other than processing it.

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

Sidebar

Related Questions

I have a web page with 2 tabs. These tabs show/hide divs when clicked.
I am using Struts application while running welcome page is run successfully after that
I have a video playing on my page. I want to show and hide
I have created a jsp page which run fine when executed in tomcat.But when
I have a bunch of divs on my page that are added at run
I've created a start page that loads when the application is run but it
Related: How do I run different versions of jQuery on the same page? I
Error I tried this page to run on local, it is running perfectly fine
I have a user control that is being integrated to the page on run
I have a PHP page that I run every minute through a CRON job.

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.