-
1. Re: How to add css styling to Edge Animate elements?
♥Schrene Jan 29, 2013 1:13 PM (in response to RuesterProd)Your code should look like this:
sym.$("bio").css("text-align","justify");
-
2. Re: How to add css styling to Edge Animate elements?
RuesterProd Jan 29, 2013 1:30 PM (in response to ♥Schrene)Thank you sooo much Schrene for your prompt reply!
So basically, to style anything in Edge Animate, you would always use the format...
sym.$("divId").css("cssStyle", "cssStyleProperty");
So if I wanted to accomplish multiple css tasks, would it look like this...?
sym.$("bio").css("text-align","justify","text-indent","2em"); - [ie to indent the first line in every paragraph]
-
3. Re: How to add css styling to Edge Animate elements?
♥Schrene Jan 29, 2013 2:11 PM (in response to RuesterProd)Multiple would look like this:
sym.$("pic").css({ "background": "url(images/toy-A.jpg) no-repeat","opacity" : "0.6"});
-
4. Re: How to add css styling to Edge Animate elements?
RuesterProd Jan 29, 2013 2:24 PM (in response to ♥Schrene)Awesome! Thank you again, you rock!!
One other quick question... to indent the first sentence of each of a few paragraphs, does each paragraph need to be in a separate div and then apply text-indent to a parent div, or is there a way to do that in a single div containing multiple paragraphs? (I tried using text-indent on my "bio" div which contains 3 paragraphs, but it only indented the first paragraph...
-
5. Re: How to add css styling to Edge Animate elements?
♥Schrene Jan 29, 2013 3:17 PM (in response to RuesterProd)The text lines in a text box are seperated by a <br> and not a <p> tag so there is no way to target paragraphs.
So I think your best bet is to use seperate text boxes for each paragraph.
-
6. Re: How to add css styling to Edge Animate elements?
RuesterProd Feb 12, 2013 6:11 PM (in response to ♥Schrene)...oh, and if I wanted to target the css of text inside a symbol - For instance, if I had the text "Welcome" inside a Symbol labelled "WelcomeBtn" and I wanted to change the color of the text using the WelcomeBtn.click event... how would I do that?
-
7. Re: How to add css styling to Edge Animate elements?
♥Schrene Feb 13, 2013 4:52 AM (in response to RuesterProd)sym.getSymbol("WelcomeBtn").$("Welcome").css("color","blue");
-
8. Re: How to add css styling to Edge Animate elements?
RuesterProd Feb 13, 2013 5:13 PM (in response to ♥Schrene)Thank you again! The placement of the $ sign is what gets me.... lol
-
9. Re: How to add css styling to Edge Animate elements?
Eversir2 May 20, 2013 2:52 AM (in response to RuesterProd)Just following on from this question actually, as I'm having some issues changing the css gradient of another element. If I just want to change the standard background colour, it works fine. Here is my syntax at the moment:
sym.$("Q1_Ellipse_1837Copy4").css("background-image": "-webkit-linear-gradient(270deg,rgba(226,124,124,1.00)0%,rgba(198,15,15,1.00)50%,rbga(135 ,25,25.1.00)100%");
-
10. Re: How to add css styling to Edge Animate elements?
resdesign May 20, 2013 10:22 AM (in response to Eversir2)Here is the code for FF:
sym.$(""").css("background-image", "-moz-linear-gradient(top, #8f8f8f, #ffffff)");
There is an error in your code: You need to replace : by ;
sym.$("Q1_Ellipse_1837Copy4").css("background-image"; "-webkit-linear-gradient(270deg,rgba(226,124,124,1.00)0%,rgba(198,15, 15,1.00)50%,rbga(135,25,25.1.00)100%");
or you can use the css with style format {}
sym.$("Q1_Ellipse_1837Copy4").css({
"background-image": "-webkit-linear-gradient(270deg,rgba(226,124,124,1.00)0%,rgba(198,15, 15,1.00)50%,rbga(135,25,25.1.00)100%"
});
But it does not work in Chrome, though it works with the gradient panel in Edge. It works in FF.
I will try to do some research on it.
-
11. Re: How to add css styling to Edge Animate elements?
TEAMniel Oct 12, 2013 2:29 PM (in response to resdesign)Really helpful thread, thank you all!
Just another question (I know really basic but I am rather new to Animate):
_where_ does the code go?
Because for a single element you have to choose an action (eg. "on click") befor you can add code ...
Thanks for help!
-
12. Re: How to add css styling to Edge Animate elements?
elainefinnell Oct 18, 2013 3:51 PM (in response to TEAMniel)Hi, TEAMniel-
You can stick the code into your initialization function for your symbol (creationComplete) or the composition's compositionReady function.
Hope that helps,
-Elaine
-
13. Re: How to add css styling to Edge Animate elements?
GraphicsGeezer Mar 2, 2014 2:21 PM (in response to elainefinnell)What and where is the "symbol (creationComplete) or the composition's compositionReady function" ??
-
14. Re: How to add css styling to Edge Animate elements?
resdesign Mar 2, 2014 3:00 PM (in response to GraphicsGeezer) -
15. Re: How to add css styling to Edge Animate elements?
GraphicsGeezer Mar 2, 2014 3:08 PM (in response to resdesign)Thanks. BTW how did you know that? Did you just read some part of the non-existant documentation that I missed?
-
16. Re: How to add css styling to Edge Animate elements?
resdesign Mar 2, 2014 3:12 PM (in response to GraphicsGeezer)Been working with Animate for 2 years since the beginning.
Check out my tutorials on edgeHero.com, particularly this one:
-
17. Re: How to add css styling to Edge Animate elements?
GraphicsGeezer Mar 2, 2014 3:27 PM (in response to resdesign)Yes, I've bookmarked your page. Meantime, I edited another response to your question as I'd figured out how to apply a css rule to a single item. Now I want to know how would I designate items like headlines on various symbols as 'h1' for example, and where would I put the style rule that set the properties for all h1 text?
Thanks-- very helpful so far.
-
18. Re: How to add css styling to Edge Animate elements?
resdesign May 29, 2014 5:45 AM (in response to GraphicsGeezer) -
19. Re: How to add css styling to Edge Animate elements?
Xoco Jul 28, 2014 12:54 AM (in response to resdesign)And how can I to define wich style is h1, h2, h3 with UI of Edge?
-
20. Re: How to add css styling to Edge Animate elements?
resdesign Jul 28, 2014 6:16 AM (in response to Xoco)Actually I do not use the panel above. I use
sym.$('Text').html('<h1>Title here</h1>');
and append the css file in creationComplete.
-
21. Re: Re: How to add css styling to Edge Animate elements?
lostnsanity Oct 7, 2014 1:03 PM (in response to ♥Schrene)Is there a way to use a similar method to check a css value as opposed to changing a css value. Something like:
var opacity = sym.$("bio").css("opacity");
Then I would be able to create an if statement checking if the opacity (driven by keyframes) is a certain value.
-
22. Re: Re: How to add css styling to Edge Animate elements?
resdesign Oct 8, 2014 1:10 PM (in response to lostnsanity)Absolutely. If you set an alert or use the console, it will return the value.
Try this:
var opacity = sym.$("bio").css("opacity");
alert(opacity);








