Skip to main content

Bug Tracker

Side navigation

#9074 closed bug (fixed)

Opened May 03, 2011 08:05PM UTC

Closed May 07, 2011 11:20PM UTC

Last modified March 17, 2012 08:54PM UTC

Cannot animate position and opacity at same time

Reported by: henrykuo1@gmail.com Owned by: gnarf
Priority: blocker Milestone: 1.6.1
Component: effects Version: 1.6
Keywords: Cc:
Blocked by: Blocking:
Description

Including both a position (left or top) and opacity properties in an animate method, the position does not animate. Only the opacity animates, and at the end of the duration, the position immediately jumps to the new position property.

Attachments (0)
Change History (13)

Changed May 03, 2011 08:12PM UTC by henrykuo comment:1

_comment0: Sorry, this is my first bug report, so don't know how to modify the original post. \ \ I've put a supre quick example here: http://henrykuo.com/jquerytest/test.html \ \ On mac, this occurs in Safari, Firefox, and Chrome. Removing the 'opacity' property, the position animates correctly.1304453590994269

Sorry, this is my first bug report, so don't know how to modify the original post.

I've put a super quick example here: http://henrykuo.com/jquerytest/test.html

On mac, this occurs in Safari, Firefox, and Chrome. Removing the 'opacity' property, the position animates correctly.

Changed May 03, 2011 08:13PM UTC by timmywil comment:2

component: unfiledeffects
priority: undecidedhigh
status: newopen

Changed May 05, 2011 02:01PM UTC by timmywil comment:3

#9118 is a duplicate of this ticket.

Changed May 05, 2011 02:21PM UTC by anonymous comment:4

http://jsfiddle.net/B3vdC/

You can temporarily fix it if you add 'px' to your value.

Changed May 05, 2011 10:09PM UTC by fparent comment:5

Opacity seems to break animations using margin properties as well:

http://jsfiddle.net/fparent/69eEL/

Changed May 05, 2011 10:24PM UTC by rwaldron comment:6

#9133 is a duplicate of this ticket.

Changed May 06, 2011 07:57PM UTC by timmywil comment:7

#9136 is a duplicate of this ticket.

Changed May 07, 2011 10:53PM UTC by gnarf comment:8

owner: → gnarf
status: openassigned

Changed May 07, 2011 11:20PM UTC by gnarf comment:9

resolution: → fixed
status: assignedclosed

Landing pull request 372. Test for numeric properties was using wrong variable. Fixes #9074.

More Details:

Changeset: 31268449b9255b21fad4bafd7da13c910a00af37

Changed May 07, 2011 11:21PM UTC by timmywil comment:10

milestone: 1.next1.6.1
priority: highblocker

Changed May 08, 2011 04:26PM UTC by rwaldron comment:11

#9175 is a duplicate of this ticket.

Changed May 15, 2011 02:51PM UTC by nicktheandroid@gmail.com comment:12

For some reason, if you make opacity the first in your list of animated properties, it fixes the problem.

http://jsfiddle.net/nicktheandroid/LJZ54/57/

Changed May 15, 2011 02:54PM UTC by nicktheandroid@gmail.com comment:13

Replying to [comment:12 nicktheandroid@…]:

For some reason, if you make opacity the first in your list of animated properties, it fixes the problem. http://jsfiddle.net/nicktheandroid/LJZ54/57/

This page was listed as a duplicate of another, I posted the answer to the other, which might actually help this one too.. considering it's supposedly a duplicate but I don't have time to verify.