firefox中带有多元素循环的Jquery动画

firefox中带有多元素循环的Jquery动画,jquery,Jquery,我试图调整导航与标志和一些滚动按钮。我对Firefox有问题。如果用户多次使用此选项,则在完成此操作之前,不会执行所有其他动画。已尝试使用.finish()和.stop(true,true) 顺便说一句:我把代码放在$(窗口)中。在(“加载滚动调整大小”,函数(e){。。。 使用:1.11.1 jQuery和UI为什么不使用css动画?代码太多?我喜欢保持它清晰和狭窄,但我将不得不使用jQuery动画的速度很慢。Ervald,zou是对的!将通过css实现这一点 function resizeT

我试图调整导航与标志和一些滚动按钮。我对Firefox有问题。如果用户多次使用此选项,则在完成此操作之前,不会执行所有其他动画。已尝试使用.finish()和.stop(true,true)

顺便说一句:我把代码放在$(窗口)中。在(“加载滚动调整大小”,函数(e){。。。
使用:1.11.1 jQuery和UI

为什么不使用css动画?代码太多?我喜欢保持它清晰和狭窄,但我将不得不使用jQuery
动画
的速度很慢。Ervald,zou是对的!将通过css实现这一点
function resizeTopSmall() {
    $('#sticky-top').stop().animate({height: '60px'}, { duration: 200, queue: false });
    $('#top nav a, #social a').stop().animate({'font-size':'0.9em', 'padding':'25px 10px 22px'}, { duration: 200, queue: false });
    $('#logo').stop().animate({height:'60px', width:'240px'}, { duration: 200, queue: false });
    $('#logo img').stop().animate({width:'240px'}, { duration: 200, queue: false });
    $('#logo a').css({padding:'15px 0 0'});

}   
function resizeTopBig() {
    $('#sticky-top').stop().animate({height: '120px'}, { duration: 200, queue: false });
    $('#top nav a, #social a').stop().animate({'font-size':'1em', 'padding':'50px 10px 22px'}, { duration: 200, queue: false });
    $('#logo').stop().animate({height:'120px', width:'125px'}, { duration: 200, queue: false });
    $('#logo img').stop().animate({width:'700px'}, { duration: 200, queue: false });
    $('#logo a').css({padding:'5px 0 0'});
}