Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

BackgroundColor fade-to-white function



11:49 pm on Feb 12, 2007 (gmt 0)

10+ Year Member

I am having trouble with a JavaScript function I wrote that will fade the background color of an element to white using the given number of steps. The problem is that it runs so fast that you never see the fading unless you put an alert in between each fade step. Does anyone know how I can put a delay between each fade step so that the fade is noticeable to the user?


11:56 pm on Feb 12, 2007 (gmt 0)

10+ Year Member

Actually, I just figured it out. I used the setTimeout function to execute each fade step after a specific delay. It seems to be working nicely now.

Featured Threads

Hot Threads This Week

Hot Threads This Month