Forum Moderators: open
for(i=100;i>0;i--){
set opacity of div=i
wait
}
I can't find a way for setInterval/Timeout to do it unless I'm willing to put myself in a loop and eat up CPU resources. This is all in a function that I don't want separated so I need to actually wait for this to complete to move on.
Does JavaScript have exact time functions like down to the millisecond that I could use to get the effect? Any help would be greatly appreciated.