📣 Help shape Firefox by joining our Test Days event on July 21–Aug 1 to test the Firefox Semantic History Search in Firefox Beta 142

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

css transitions on new elements

As you can see on http://stackoverflow.com/questions/12088819/css-transitions-on-new-elements I had a little problem playing with the css transitions applied on new elements (created by javascript, instead of always present in the html).

On stackoverflow I also received a solution, such as to force the reflow of the css.

While it does "run", I find it a little too much hackish: is there a better way to achieve what I need?

As you can see on http://stackoverflow.com/questions/12088819/css-transitions-on-new-elements I had a little problem playing with the css transitions applied on new elements (created by javascript, instead of always present in the html). On stackoverflow I also received a solution, such as to force the reflow of the css. While it does "run", I find it a little too much hackish: is there a better way to achieve what I need?

All Replies (1)

This might not be the best forum for this question, since here we focus on end-user support. You can find more web development help on the mozillaZine Web Development board. Separate forum, separate registration.

That said, some script behaviors that bedevil developers appear to be the result of optimizations and you need to come up with hacks in order to bypass the optimizer.