jquery - if appending divs with getJSON, is it possible to display them animated one at a time? -


Everyone. I connect some devices through a getJSON function but I want to jazz a bit. All divs are currently displayed at the same time. Is it possible to separate milliseconds? Like the first fades, then the second, and so on?

For example, what do I still have:

  $ Attached ("& lt; div class = 'thumb_container' & gt; .... & lt; / div & gt;"). Every child (results, work (i, area) {$ (". Thumbnail_area"). (). CSS ('background-color', 'red'). Delay (1000). FadeOut (1000);}); // the function of the result); // foreach function   

So far, everything fades out after each other (oh BTW I know I said I wanted them to be faded, but the image is just fade

Thank you guys

each frequency To generate incremental delays, the index value ( i ) that you already joined in the loop Use. $ Each (result, function (i, region) {$ (". Thumbnail_re"). Enclosed ("

Each item will be delayed in i * 1000 milliseconds, so they will fade in different 1000 milliseconds from each other.

Comments