Bug Tracker

Opened 8 years ago

Closed 8 years ago

#7669 closed bug (invalid)

.css( propertyName, value ) not responding to queueing through delay

Reported by: theodore.nielsen@… Owned by:
Priority: undecided Milestone: 1.6
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:

Description

In a sample animation script:

$('#someDiv').delay( 300 ).fadeOut( animateSpeed );
$('#anotherDiv').delay( 600 ).addClass( 'someClass' );
$('#anotherDivsMate').delay( 600 ).css( 'display', 'table-cell' );

The css( propertyName, value ) setter is ignoring the queueing of the 600ms delay and is executing on $(document).ready().

Change History (1)

comment:1 Changed 8 years ago by ajpiano

Resolution: invalid
Status: newclosed

Thank you for your time and interest in helping the jQuery project!!

From the docs (http://api.jquery.com/delay):

"The .delay() method is best for delaying between queued jQuery effects. Because it is limited—it doesn't, for example, offer a way to cancel the delay—.delay() is not a replacement for JavaScript's native setTimeout function, which may be more appropriate for certain use cases."

the .css() method is not put in a queue and, like many jQuery methods, it does not work with .delay()

Note: See TracTickets for help on using tickets.