Skip to content Skip to sidebar Skip to footer

How To Slow Down A Fade Effect?

I found this very old post here Fade text when page scrolls and found a particular bit of code by @Ruben-Infante and I wanted to know how I slow the fade down. As when I scroll wit

Solution 1:

fadeTo's first parameter is the speed of the fade in ms.

I see your speed is set to 0. Try this for a 1 second fade (line 3):

$('.fade').stop(true, true).fadeTo(1000, 1 / top);

Docs: api.jquery.com/fadeTo

JSFiddle: http://jsfiddle.net/q7u4d/303/

Post a Comment for "How To Slow Down A Fade Effect?"