Re: [css-transitions] discrete animations of non-interpolable properties (was Re: renaming "Animatable:" to "Interpolation:" in property definition tables)

On Sat, May 23, 2015 at 10:17 AM, L. David Baron <dbaron@dbaron.org> wrote:
> On Friday 2015-05-22 22:13 -0700, Garrett Smith wrote:
>> It can be better.
>
> Sounds like you're talking about something other than the Subject of
> the thread, so changing Subject (as you should have done).
>
>> Switching `display` or `visibility` in the middle of an animation is
>> not something I've ever wanted. It's useful to do switch it either at
>> the first frame or at the end.
>
> You can choose between these options by choosing between the
> 'step-start' or 'step-end' timing functions, which are the main ones
> that are sensible for discrete animations.
>
> That said, we could probably reduce the compatibility risk by
> changing the rules for discrete animations so that the change
> happens between a timing function that is less than or equal to 0,
> versus a timing function that is greater than 0; this would means
> that by default changes would happen at the start.

We chose the current behavior as it matched SVG, and felt the compat
risk was relatively small.

~TJ

Received on Saturday, 23 May 2015 18:29:46 UTC