weixin_33716557 2015-08-22 14:18 采纳率: 0%
浏览 86

jQuery:POST数据动画

I'm getting data with AJAX like this:

$.post("ajaxLog.php", {func: 'getAllChallenges', arr: array}, function(data){
    $(".mainpageAppending").prepend(data);
    $(".mainpageChallengeResponseDiv").css('display', 'none');

    $(data).filter(".mainpageChallengeDiv").toggle(function(){
        $(data).filter(".mainpageChallengeDiv").slideToggle();
    });

    tmout = setTimeout("intervalLoading()", 10000);
});

I need to do animation of prepended data with .mainpageChallengeDiv. Everything is OK, but that animation doesn't work.

  • 写回答

1条回答 默认 最新

  • 程序go 2015-08-22 14:27
    关注

    Sorry, it is maybe impossible so I started thinking about Server side, and work it when I set it opacity 0 and all divs animating with animate opacity 1. Anyway thanks, but if is there solutions to lower traffic of web browser so I'm in with that solution.

    评论

报告相同问题?