0

How do I delay a fade?

So I am trying to delay a .fadeIn() using JQuery. This is the thing: I want to fade a div with id ="introMenu" and when that div is completely faded out, after 700 milliseconds I want the div with id="mainMenu" to fade in in 250 milliseconds, but I don't know how to delay it, so, could someone please tell me how could I delay a .fadeIn()? I would really appreciate it ^^ thanks ;3

9th Jun 2017, 2:20 AM
Alastair Rails
Alastair Rails - avatar
1 Answer
0
This is just off the top of my head and may not be exactly correct, but should lead you down the right path. $("#introMenu").fadeout("slow") .queue(function() { $("#mainMenu").delay(700).fadein(250); )};
9th Jun 2017, 2:38 AM
ChaoticDawg
ChaoticDawg - avatar