2011-12-13 137 views
0

我的网站上有一些jQuery问题,我不知道我的问题是什么。有人可以检查它吗?由于某些原因,Firefox的问题最多。jQuery动画问题

动画是简单的jQuery动画,应该可以很好地工作,但它在我的浏览器上一点都不光滑。 http://myfirstletters.com/base.html http://myfirstletters.com/media/js/functions.js(动画在功能start_animation和move_js) http://myfirstletters.com/media/js/main.js

谢谢您的时间

function start_animation() { 
    $('#website').stop().animate(); 
    window_height= $(".intro").height(); 
    animation = ((window_height)*-4)-20; 
    $('#intro_website').css('marginTop', -window_height-20); 

    $('#intro_website').animate({ 
    marginTop: animation 
    }, 17000, 'linear', function(){ 
    status=true; 
    $('#intro_website').stop().animate(); 
    $('#website').css('zIndex', 1); 
    $('#intro_website').css('display', 'none'); 
    $("#skip").css('display', 'none'); 
    }); 
} 
+1

你可以在这里粘贴一些javascript行 –

+0

函数init()是什么? –

+0

@faiahime,你正在为你的功能做一堆事情。你需要强调你正在面临的问题。其他人不能帮助,如果你发布整个js文件。 –

回答

0

取下介绍动画完成后(或跳过时)。该网站将动画更平滑。

$('#intro_website').remove(); 

您应该使用不在视口中的所有ellements来做到这一点。当他们需要显示时,您可以使用ajax加载它们。

希望它有一点帮助!