Need help with jQuery AJAX and transition effects

OK guys, my website is almost finished - http://www.visualise.ca/ But there is one thing that really bugs me. When I click on a thumbnail to open a post which loads within the same page using AJAX and then click on another thumbnail to load another post the transition is not smooth and the image takes a while to load and it's ugly. Is there a way I can improve that and make everything smooth using fadeIn/fadeOut ? Here is what I tried with no luck (active now). $(".ajaxed").live("click", function(event) { $.address.crawlable(true).value($(this).attr("rel")); $("#content").fadeTo(500,0); $("html,body").animate({scrollTop: 205}, 300); var post_slug = $(this).attr("rel"); $("#board").load("ajax/",{slug:post_slug}); $("#board").delay(1500).slideDown("slow"); return false; }); Many thanks for your time and help

以上就是Need help with jQuery AJAX and transition effects的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » jQuery 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏