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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T22:03:05+00:00 2026-06-03T22:03:05+00:00

With regards to my previous question before; Jquery slide animation . In order to

  • 0

With regards to my previous question before; Jquery slide animation. In order to have a slider, I used this solution:

HTML

<div class="bigBox">
     <div class="try2">
          <h3 id="test2">CLICK THIS</h3>
          <p>This is a demonstration of jQuery SimpleDialog.</p>
      </div> 
      <div class="try">
          <p id="haha">CLICK THIS</p>
          <p>This is a demonstration of jQuery SimpleDialog.</p>
      </div>          
</div>

​
JS

$('#haha').click(function() {
    $('.try').hide("slide", {
        direction: "left"
    }, 1000);
    $('.try2').show("slide", {
        direction: "right"
    }, 1000);
});​

CSS

div.bigBox {
  background-color:transparent;
  width:100px;
  height:125px;
  position: relative;
}

.try, .try2{
  width:100px;
  height:125px;
  position: absolute;
}

.try {
  background-color:green; 
}

.try2{
  background-color:yellow;
} ​

DEMO

The problem is when you minimize/maximize the page (zoom is not 100%) in google chrome, the slider doesn’t slide smoothly anymore. But if i test it in firefox/IE, it works well.

What causes the space between the slider in the google chrome? Is this a google chrome bug? How can I fix it? Thank you.

  • 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-03T22:03:06+00:00Added an answer on June 3, 2026 at 10:03 pm

    Admittedly I’m not sure why it’s doing this in chrome, but here is a slightly different approach that works for me when zoomed in a bit.

    http://jsfiddle.net/CV7fd/20/

    The basic concept is to wrap the two child elements “try” and “try2” in another div (call this “overflowDiv”). We then limit the the size of the “bigBox” div to the 100px and set it’s CSS overflow property to “hidden”. “overflowDiv” is made as wide as the width of “try” and “try2” together such that they don’t wrap (200px – remember to include padding, borders, width and margins into this calculation). “bigBox” then effectively becomes a window into the “overflowDiv”‘s content. The animation then simple adjusts the “overflowDiv”‘s left position.

    The result is that we end up only animating one element instead of two, and thus they are more likely to appear flush next to each other.

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

Sidebar

Related Questions

This question is in regards to this blog entry. https://blog.stackoverflow.com/2008/07/easy-background-tasks-in-aspnet/ All the way at
My current problem regards updating context information dynamically in FormInjector , my previous question
further to my previous question , I have a new problem now, I want
i know this question might be too easy, but i have no idea how
I'm (sort of) reposting this question, which is based on this previous question: multiple
With regards this example from Code Complete: Comparison Compare(int value1, int value2) { if
In regards to the order of execution of statements in SQL, is there any
a quick question in regards to table design.. Let's say I am designing a
Continuing from a previous question , I keep searching for the optimal way to
Right guys, seeing as you were so helpful last time with my previous question

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.