Javascript jQuery动画问题
我的网站上有一些jQuery问题,我不知道我的问题是什么。有人能检查一下吗?由于某些原因,Firefox的问题最多 这些动画是简单的jquery动画,应该可以很好地工作,但在我的浏览器上一点也不流畅。 http://myfirstletters.com/media/js/functions.js 动画位于函数start_animation和move_js中 谢谢你抽出时间Javascript jQuery动画问题,javascript,jquery,browser,smooth,Javascript,Jquery,Browser,Smooth,我的网站上有一些jQuery问题,我不知道我的问题是什么。有人能检查一下吗?由于某些原因,Firefox的问题最多 这些动画是简单的jquery动画,应该可以很好地工作,但在我的浏览器上一点也不流畅。 http://myfirstletters.com/media/js/functions.js 动画位于函数start_animation和move_js中 谢谢你抽出时间 function start_animation() { $('#website').stop().animate(
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');
});
}
在介绍动画完成后或跳过它时删除它。该网站将动画平滑一点
$('#intro_website').remove();
您应该对视口中不存在的所有元素执行此操作。当它们需要显示时,可以使用ajax加载它们
希望对你有所帮助 您可以粘贴一些javascript行here@faiahime,你在函数中做了很多事情。你需要强调你正面临的问题。如果你发布整个js文件,其他人也帮不上忙。