在网上找了个具有缓冲效果的代码,导航菜单使用ul标签写的,应用这段代码没有问题。。但是我在其他地方也用了ul列表,而这个地方后来也有了缓冲效果。我现在只想让导航菜单有缓冲效果,我应该怎么修改??原谅我是JS菜鸟。。。
$(document).ready(function(){
//Remove outline from links
$("a").click(function(){
$(this).blur();
});
//When mouse rolls over
$("li").mouseover(function(){ $(this).stop().animate({height:'150px'},{queue:false, duration:600, easing: 'easeOutBounce'})
});
//When mouse is removed
$("li").mouseout(function(){ $(this).stop().animate({height:'50px'},{queue:false, duration:600, easing: 'easeOutBounce'})
});
});
js缓冲效果菜单代码
答案:1 悬赏:50 手机版
解决时间 2021-05-01 22:03
- 提问者网友:玫瑰园
- 2021-05-01 07:23
最佳答案
- 五星知识达人网友:街头电车
- 2021-05-01 08:54
做个假的缓冲,开始用一张缓冲图片表示,三秒钟之后再调用函数,出来导航栏就可以了
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯