W3C home > Mailing lists > Public > www-style@w3.org > December 2013

Re: Proposal: will-animate property

From: Benoit Girard <bgirard@mozilla.com>
Date: Thu, 12 Dec 2013 18:24:59 -0500
Message-ID: <CAAyLn86_+PySah0-5e-jP4D8055PXWRL5tmMsJ=hxG434_faiQ@mail.gmail.com>
To: Henrik Andersson <henke@henke37.cjb.net>
Cc: www-style <www-style@w3.org>
That syntax doesn't work with 'scroll-position || contents' that's been
suggested above. Also if we're using !animated it's easy for something to
change the value without preserving if !animated was set or not. Say:
elem.style.top = x + "px" + (isAnimated?" !animated":"");


On Thu, Dec 12, 2013 at 6:56 AM, Henrik Andersson <henke@henke37.cjb.net>wrote:

> Benoit Girard skriver:
> > I'd like to propose a will-animate CSS property.
> >
>
> I just had an idea for a different approach.
>
> Why not use the !bang syntax for this?
>
> For example:
>
> div {
>  top: 0px !animated;
> }
>
> I have not thought much about this approach, so I probably overlooked
> some important details.
>
>
Received on Thursday, 12 December 2013 23:25:27 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:17 UTC