osh*_*nen 11 jquery jquery-effects
我有以下脚本运行良好:
$(that).parents(".portlet").fadeOut('slow', function() {
$(that).parents(".portlet").remove();
});
Run Code Online (Sandbox Code Playgroud)
它只是淡化元素,然后从屏幕上完全删除它.
我希望通过在淡出时向上滑动来稍微改善效果.我该怎么办?
只是为了澄清,我不希望它淡出然后向上滑动,或向上滑动然后淡出,我希望它淡出,并且在它消失的同时,我希望它向上滑动.
She*_*hef 17
$(that)
.parents(".portlet")
.animate({height: 0, opacity: 0}, 'slow', function() {
$(this).remove();
});
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
18426 次 |
| 最近记录: |