开发者

How do I fade out text when scroll to a div using jQuery

开发者 https://www.devze.com 2023-02-17 16:30 出处:网络
I want add fade out to my footer text when click on scroll to footer div Here an example http://jsfiddle.net/JpsjX/

I want add fade out to my footer text when click on scroll to footer div

Here an example http://jsfiddle.net/JpsjX/

So here, when I click Scroll to footer link and I want add some anima开发者_运维百科tion on text I want to Fade Out This Text

Let me know


Is this what you want? : http://jsfiddle.net/JpsjX/1/

Modifying your animate() function with a callback will do it.

$('html, body').animate({scrollTop:target_top}, 500, function(){
     $("#footer").fadeOut('slow');
});
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号