This content has been marked as final.
Show 1 reply
-
1. Re: Headache with a variable! Quick help please!
joel_pau Jul 2, 2014 1:23 PM (in response to jamesfootight)Hi,
1) You have to overturn closures. There is a tool: sym.setVariable().
var bullets = ["bullet1", "bullet2", "bullet3", "bullet4"];
sym.setVariable("fadeInArray", bullets);
2) Then, you have to browse this array using a loop.
$.each( sym.getVariable("fadeInArray"), function(index,item){ console.log(item) } ); // This line returns array items.
$.each( sym.getVariable("fadeInArray"), function(index,item){ sym.$(item).fadeIn(1000) } );
A better solution: you can also create a class using Edge Animate UI (for instance: fadeEffect). Then: sym.$( ".fadeEffect" ).fadeIn(1000);


