• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

Randomly Dissolving Image with JavaScript

joerocket23

Weaksauce
Joined
Sep 15, 2007
Messages
88
Hi Everyone,

I am trying to create an effect with JS of an image that randomly appears from a shroud. What I am thinking is a black div(s) above the image, then dissolve the black div randomly.

What I am running into is that all the "dissolve" methods I have found (scriptaculous, mootools, jquery) treat the div as a whole and it all fades out uniformly. I am trying to make it so it looks like the shroud is fading out a random 5px square at a time.

Every approach I can think of involves a ridiculous amount of 5px divs that cover the desired image and fade individually. Problem: 6400 divs and individual fades to cover a 400 sq. px image.

How would you approach this problem?
 
Back
Top