jQuery animate实现slideUp slideDown 的反向

function showLockWarningUI(selection_id){
var element = $('#' + selection_id + ' .lock-warning-container');
element.show().find('.lock-warning-section').css('opacity','0').animate({top:'0px',opacity:'1'},500);
setTimeout(function(){
hideLockingWarningUI(selection_id);
},2000);
}
function hideLockingWarningUI(selection_id){
var element = $('#' + selection_id + ' .lock-warning-container');
element.find('.lock-warning-section').animate({top:'41px',opacity:'0'},500,function(){
element.hide();
});

}

你可能感兴趣的:(animate)