18 Replies Latest reply on Jan 18, 2013 2:07 PM by brex2040

    Opening URL, only after completing amimation

    pmfr01 Level 2

      Hi.

      I have this button that, when clicked, opens a new URL - window.open("http://www.xxxxxx.xxx", "_self"); - after playing a 1000 ms animation. The problem is that it changes to the new URL too soon, before completing the 1000 ms. I tried a setTimeout, and it worked great, but it's not so elegant as it depends on the user's computer/net speed...

      Any ideas?