loop adding plugins, tween onloaded?

  • Hi,

    I dynamicly add thumbnails with a loop. Now I want them to tween in nicely from left to right. Since you need to wait before they're loaded before you tween, I use the onloaded event of the plugin. But then I get a random order of thumbnails that slide in (since one thumbnail, loads faster then the other).

    How can I solve this?

  • Thanks for the brainspin. I think I got it now

    in the for loop I have a set(plugin[get(pname)].onloaded, animated_thumbs());

    and then:

    This will animate them nicely after eachother

    Any nice solutions are welcome. I like the usage of the for loop. That repeatily calling the same action feels dirty and not easy to read. But can't figure out how to rewrite this to a for loop

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!