0
animationend event fires early. Why?
When I try to add an event listener it fires immediately.
7 odpowiedzi
+ 1
have u tried setTimeout(eventlistener(event,func), x )
+ 1
Then what did you expect? it means that the function fires as the document has loaded
+ 1
oh there could be so many reasons.. just post the code
+ 1
lol k xD
0
I tried using document. onload.
0
Yes but it is not waiting for the document to load. It is running before the document is loaded and then complaining that elements don't exist.
0
Its fine I changed the idea to avoid the problem.