0
我想添加淡出我的頁腳文本當點擊滾動到頁腳DIV如何淡出文本時滾動使用jQuery的
下面的例子http://jsfiddle.net/JpsjX/
所以在這裏,當我點擊一個div Scroll to footer
鏈接,我想加上一些文字動畫I want to Fade Out This Text
讓我知道
我想添加淡出我的頁腳文本當點擊滾動到頁腳DIV如何淡出文本時滾動使用jQuery的
下面的例子http://jsfiddle.net/JpsjX/
所以在這裏,當我點擊一個div Scroll to footer
鏈接,我想加上一些文字動畫I want to Fade Out This Text
讓我知道
這是你想要的嗎? :http://jsfiddle.net/JpsjX/1/
用回調修改animate()
函數就可以了。
$('html, body').animate({scrollTop:target_top}, 500, function(){
$("#footer").fadeOut('slow');
});
謝謝@JohnP – wow 2011-03-17 16:07:05