W3C home > Mailing lists > Public > www-style@w3.org > June 2010

Re: [css3-transitions] Issues with starting transitions after inserting content

From: L. David Baron <dbaron@dbaron.org>
Date: Thu, 24 Jun 2010 23:43:00 -0700
To: Simon Fraser <smfr@me.com>
Cc: Boris Zbarsky <bzbarsky@mit.edu>, www-style list <www-style@w3.org>, nirvn.asia@gmail.com
Message-ID: <20100625064300.GA23732@pickering.dbaron.org>
On Thursday 2010-06-24 20:29 -0700, Simon Fraser wrote:
> The author is doing the following:
>   container.appendChild(form);
>   form.style.opacity = "1";
> but the browser never renders the initial "opacity: 0" state, so a
> transition does not occur. This is similar to wanting transitions
> to run when "display" changes from "none" to something.

I've been thinking that a solution to this sort of thing is to have
a script API to initiate a transition:  it would take the ending
value, likely also a starting value, and perhaps also a value of the
'transition' property, and would be equivalent to setting
element.style, but with a transition from the starting (or current)

I haven't thought about this in much detail yet, though.


L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Friday, 25 June 2010 06:43:32 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:36 UTC