Edge Animate Element CSS Value

  • Adobe Edge Animate - May 15, 2016

A simple was to change the CSS properties of a element or symbol in Edge Animate.


So in this example, say you have drawn box on the stage 50px x 50px but at runtime you want the box to be 100px x 100px

sym.$("elementName").css("width","100");
sym.$("elementName").css("height","100");

You can use this method for any CSS value, e.g.:

sym.$("elementName").css("border", "none");
sym.$("elementName").css("border-radius", "100px");
sym.$("elementName").css("text-align", "center");

 

Comments