Skip to main content

Bug Tracker

Side navigation

#12246 closed bug (invalid)

Opened August 10, 2012 12:51PM UTC

Closed August 25, 2012 08:50AM UTC

Animate :: Using '+=' or '-='

Reported by: Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.0
Keywords: Cc:
Blocked by: Blocking:


I'm currently experiencing an issue with jquery animate, when

doing the same actions too many times. Here is an example of the executing code:

$(' .viewimage').click(function () {

if ($(this).hasClass('sel')) return false;


$(' .description').stop().show()

.animate({ opacity: 1 });

$(' .dfwp-item .item').stop()

.animate({ height: '+=70px' }, { queue: false });

return false;


$(' .viewlist').click(function () {

if ($(this).hasClass('sel')) return false;


$(' .description').stop()

.css({ opacity: 0 }).hide();

$(' .dfwp-item .item').stop()

.animate({ height: '-=70px' }, { queue: false });

return false;


The HTML are a couple of divs with title and description, and i'm collapsing to show only the title, and achieve a more compact layout that allows me to show more content.

To make the divs collapse i have two links, the ones of the click event above, and the problem is that when i click repeatedly into collapse and expand for lets say 10 seconds the divs start getting unformatted, like, text instead of staying in its place starts shifting down a little bit out of the div, like this (ASCII IMAGE):


a\\ \\a

a\\ \\a

a\\ lorei ipsum bla bla bla \\a

a\\ sdasds ds ad sd asd sa \\a


dsdasdsdsds sd asd sa d

sadsd sad sad asdsd sa

sadsadsadsads dasdsdsad

The text was initially inside the div...

Is this a bug?

Am i doing something wrong?

Please help me..

Best Regards,

João Pinho

Attachments (0)
Change History (2)

Changed August 10, 2012 02:31PM UTC by timmywil comment:1

owner: →
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.

Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: Open the link and click to "Fork" (in the top menu) to get started.

Changed August 25, 2012 08:50AM UTC by trac-o-bot comment:2

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!