Opened 8 years ago

Closed 8 years ago

#7899 closed bug (notabug)

switchClass doesn't animate z-index

Reported by: ollillo Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.effects.core Version: 1.8.16
Keywords: Cc:
Blocked by: Blocking:

Description

http://jsfiddle.net/ku8vc/

Animated div should go on top of static div at 1000ms.

Change History (1)

comment:1 Changed 8 years ago by Scott González

Component: ui.coreeffects.core
Resolution: invalid
Status: newclosed

This is not a jQuery UI bug. Neither jQuery nor jQuery UI support animating zIndex. You need to add a custom animation hook for zIndex to get this to work.

$.fx.step.zIndex = function( fx ) {
	fx.elem.style.zIndex = parseInt( fx.now );
};
Note: See TracTickets for help on using tickets.