jquery – 淡出并同时向上滑动?

我有以下脚本工作得很好:
$(that).parents(".portlet").fadeOut('slow',function() {
    $(that).parents(".portlet").remove();
});

它只是淡出元素,然后完全从屏幕中删除它.

我想通过滑动它稍微改善效果,而它正在逐渐消失.我该怎么办?

只是为了澄清,我不想让它淡出,因为向上滑动,或者滑下来,然后淡出,我想要淡出,同时在它淡出的同时,我希望它向上滑动.

解决方法

$(that)
    .parents(".portlet")
    .animate({height: 0,opacity: 0},'slow',function() {
        $(this).remove();
    });

相关文章

页面搜索关键词突出 // 页面搜索关键词突出 $(function () {...
jQuery实时显示日期、时间 html: <span id=&quot...
jQuery 添加水印 <script src="../../../.....
中文:Sys.WebForms.PageRequestManagerParserErrorExceptio...
1. 用Response.Write方法 代码如下: Response.Write(&q...
Jquery实现按钮点击遮罩加载,处理完后恢复 思路: 1.点击按...