W3C home > Mailing lists > Public > www-style@w3.org > September 2014

Re: [css-animations] Proposal for animation triggers, timebases and additive behavior

From: Robert O'Callahan <robert@ocallahan.org>
Date: Wed, 10 Sep 2014 11:42:46 +1200
Message-ID: <CAOp6jLZ7sOm-A+_AVJMveusG2Yhk1Cw6PMaFb=0Jcx-uXFXx0A@mail.gmail.com>
To: Dean Jackson <dino@apple.com>
Cc: "<www-style@w3.org>" <www-style@w3.org>
The basic idea seems very good.

On Wed, Sep 10, 2014 at 10:58 AM, Dean Jackson <dino@apple.com> wrote:

> animation-trigger
> -----------------
>
> Name: animation-trigger
> Value: auto | scroll(<snap point> [, <snap point>]+)
> Initial: auto
> Inherited: no
> Animatable: no
>

This inherits the CSS snap-points draft's weak handling of element-relative
positions. This bothers me because element-relative scroll positions should
be the norm, not the exception, both here and in CSS snap-points.

That aside, if we allow element-relative scroll positions here (and we
should!), then we have a circularity problem where an animation can affect
the position of an element and also be controlled by the position of that
element.

One solution would be to abandon animation-trigger as a declarative
property and instead require scripts to turn animations off and on in
response to scroll events, perhaps via Web Animations. I wonder what the
impact of that would be. Note that many uses of animation-trigger could be
rewritten as an always-on animation that's a complex function of the scroll
position.

Rob
-- 
oIo otoeololo oyooouo otohoaoto oaonoyooonoeo owohooo oioso oaonogoroyo
owoiotoho oao oboroootohoeoro oooro osoiosotoeoro owoiololo oboeo
osouobojoeocoto otooo ojouodogomoeonoto.o oAogoaoiono,o oaonoyooonoeo
owohooo
osoaoyoso otooo oao oboroootohoeoro oooro osoiosotoeoro,o o‘oRoaocoao,o’o
oioso
oaonosowoeoroaoboloeo otooo otohoeo ocooouoroto.o oAonodo oaonoyooonoeo
owohooo
osoaoyoso,o o‘oYooouo ofooooolo!o’o owoiololo oboeo oiono odoaonogoeoro
ooofo
otohoeo ofoioroeo ooofo ohoeololo.
Received on Tuesday, 9 September 2014 23:43:13 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:41 UTC