Bug Tracker

Opened 7 years ago

Closed 7 years ago

#14610 closed bug (notabug)

Jquery delay, does not delay visiblity after the set amount of milliseconds.

Reported by: corextechnologies@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 2.0.3
Keywords: Cc:
Blocked by: Blocking:

Description

if(y < 540){hide the replacement navbar

$('#repl-nav').delay(900000).css('animation-duration','1.9s').css('animation-name','navbar-slideup').delay($('#repl-nav').css('visibility','hidden'), 1900);

Usually the .delay function would delay the visibility after the animation is done but here it does not do that.

}

Change History (1)

comment:1 Changed 7 years ago by scottgonzalez

Resolution: notabug
Status: newclosed

From http://api.jquery.com/delay/:

Added to jQuery in version 1.4, the .delay() method allows us to delay the execution of functions that follow it in the queue. It can be used with the standard effects queue or with a custom queue. Only subsequent events in a queue are delayed; for example this will not delay the no-arguments forms of .show() or .hide() which do not use the effects queue.

.css() never uses the queue.

Note: See TracTickets for help on using tickets.