[英]Jquery .hover function fade in and out issue
我有這個懸停的問題。 單擊內部子項時,整個菜單淡出,然后重新進入。
$('.sc_menuwrap').hover(function(){
$('.sc_menuwrap').stop().fadeTo("slow", 1.0); // This sets the opacity to 100% on hover
},function(){
$('.sc_menuwrap').stop().fadeTo("slow", 0); // This sets the opacity back to 60% on mouseout
});
你可以在這里看到工作示例: http : //dluxstudios.com/11任何幫助非常感謝。
$('.sc_menuwrap').hover(function(){
$(this).stop().fadeTo("slow", 1.0);
},function(){
$(this).stop().fadeTo("slow", 0);
});
試試這個,一定要工作。
確保使用stop(true, true)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.