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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:30:15+00:00 2026-06-16T00:30:15+00:00

do you know why i cant animate a absolute-positioning div with jQuery? show please

  • 0

do you know why i cant animate a absolute-positioning div with jQuery?

show please here (here is my example ):

http://jsfiddle.net/2VJe8/

HTML:

<html>
<body>
    <div class="test">
        <div class="box">
            <div class="arrow"></div> 
        </div>
        <a href="#" class="btnStartAni">Animate</a>
    </div>
</body>

​

CSS:

.test { margin: 0; padding: 0;}
.test .box { width: 150px; height: 140px; background-color: red; position: relative; }
.test .box .arrow { width: 50px; height: 50px; background-color: black; position: 
absolute; bottom: 0; right: -50px;}​

JavaScript:

jQuery(".test a.btnStartAni").on("click", function(e){
   e.preventDefault();
  jQuery(".box").animate({ width: 400}, 800);
});

​

the black box is during animation hide! But i dont know why?

can you help me please?

  • 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-16T00:30:16+00:00Added an answer on June 16, 2026 at 12:30 am

    jQuery causes the overflow to be hidden when you use .animate, so change your code to

    jQuery(".test a.btnStartAni").on("click", function(e){
        e.preventDefault();
        jQuery(".box").animate({ width: 400}, 800).css('overflow', 'visible');
    });
    ​
    

    And it should work

    JsFiddle: http://jsfiddle.net/2VJe8/1/

    Source: jQuery .animate() forces style "overflow:hidden"

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

Sidebar

Related Questions

Here is what I'm working with. http://jsfiddle.net/HHBN8/1/ I am trying to animate a class
Live example here: http://timkjaerlange.com/foobar/stack-stuff/august-18-2010/test.html I want to animate addClass and removeClass on this interface
I know this question was asked before (for example here and here ) but
I know you cant do that with the Facebook API. Does OpenSocial allow me
I know we cant keep objects directly in redis queue. I converted it to
I know that we cant use assignment operator in if statements in java as
I know this is really simple but I cant find the docs for this
I know UIView are not thread safe so i cant add a view on
i cant use setInterval mehod, i don't know why. what's wrong with this script,
I dont know what happend but I cant register any dlls anymore. It seems

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.