JQuery 动画实现

$(this.div_wrong).show().css({"0px", height:"0px"})
    .animate({"260px",height:"300px"}, 150 )
    .animate({"200px",height:"240px"}, 150 )
    .animate({"240px",height:"280px"}, 150 )
    .animate({"260px",height:"300px"}, 150 )
    .animate({"0px",height:"0px"}, 350, ()=> {
        $(this.div_wrong).hide() ;
        $(this.btn_analyse).show() ;//做错了,把wrong动画显示完,不能直接跳到下一题.
        ( opt_origin == OriginType.Sprite ) && $(this.btn_next).html( "重做" ) ;
        $(this.btn_next).show() ;
        judgeCbk.call(this, false);//后面这个false表示题做错了
    });

原文地址:https://www.cnblogs.com/jason-beijing/p/10327778.html