Bug Tracker

Modify

Ticket #7669 (closed bug: invalid)

Opened 2 years ago

Last modified 2 years ago

.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

comment:1 Changed 2 years ago by ajpiano

  • Status changed from new to closed
  • Resolution set to invalid

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.