In my jQuery project, I am working on creating a dynamic effect where divs randomly fade in and out. Right now, I have managed to make one div do this successfully, but the others disappear completely.
What I really want is for a few random divs to continuously fade in and out. I want them to appear and then disappear sporadically throughout the page, creating a loop that runs indefinitely. Essentially, I need a recursive function!
You can see what I have achieved so far here: http://jsbin.com/qifavaceva/edit?js,output
I believe I need to store all the divs in an array, select random ones from that array, and then animate them accordingly.
If anyone has any suggestions or ideas on how to accomplish this task, I would greatly appreciate it!
Thank you & Best regards