Skip to main content

Bug Tracker

Side navigation

#14610 closed bug (notabug)

Opened December 05, 2013 10:24AM UTC

Closed December 05, 2013 12:00PM UTC

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

Reported by: corextechnologies@gmail.com 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.

}

Attachments (0)
Change History (1)

Changed December 05, 2013 12:00PM UTC by scottgonzalez comment:1

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.