Jquery delay on fadeout
Posted
by user272899
on Stack Overflow
See other posts from Stack Overflow
or by user272899
Published on 2010-03-24T15:06:22Z
Indexed on
2010/03/24
15:13 UTC
Read the original article
Hit count: 417
I have this code that changes the opacity of the div on hover.
$("#navigationcontainer").fadeTo("slow",0.6);
$("#navigationcontainer").hover(function(){ $("#navigationcontainer").fadeTo("slow",
1.0); // This sets the opacity to 100% on hover },function(){
$("#navigationcontainer").fadeTo("slow",
0.6); // This sets the opacity back to 60% on mouseout });
I want to have a delay before setting the div back to 0.6 opacity how would i do this
© Stack Overflow or respective owner