Modify ↓
Ticket #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: | ||
| Blocking: | Blocked by: |
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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()