你好,目前我有这个代码,它可以将我的页脚向下和向上切换,但是当它被切换到下方时,我希望页脚的内容能够淡出并且新的内容淡入。
我无论如何都想不出怎么做,请帮忙!- 谢谢
$(document).ready(function() {
$('#footertab').toggle(function() {
$('#footer').animate({
bottom: '-=120'
}, 1000);
},function() {
$('#footer').animate({
bottom: '+=120'
}, 1000);
})
});