Скажите откуда может браться задержка в данном коде
$(window).scroll(function(){ var bo = $(this).scrollTop(); var a = $("#hid").css('opacity') if ( bo >= 1) { $('#svg1').css('position','fixed') $('.logo').css('position','fixed') $('#header_cont').css('position','fixed') $('#menu_cont').animate({ height: "60px", top:"-15px" }, 0, function() { // Animation complete. }); $('nav ul li').animate({ top:"-35px" }, 100); TweenLite.to("#svg_1", 0.3, {x:0, y:-30,scaleY:0.5, transformOrigin:"0% 50%"}); }; if ( bo < 1 ) { $('nav ul li').animate({ top:"0px" }, 0) TweenLite.to("#svg_1", 0.3, {x:0, y:0,scaleY:1.15, transformOrigin:"0% 50%"}); }; }) перед вторым твином есть анимация спуска меню к нулю, почему она задерживается секунды на 3? http://svoboda.ukraine.odessa.ua/ |
Часовой пояс GMT +3, время: 07:19. |