W3C home > Mailing lists > Public > www-style@w3.org > November 2012

Re: [css3-animations] Ability to have "adjacent" keyframes / "instantaneous" interpolations

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 15 Nov 2012 20:48:04 -0800
Message-ID: <CAAWBYDAgpGfW72G3GOjV5FsK6drARLThkNBjYZsFwzrCo76F-A@mail.gmail.com>
To: Rik Cabanier <cabanier@gmail.com>
Cc: www-style list <www-style@w3.org>
On Thu, Nov 15, 2012 at 8:03 PM, Rik Cabanier <cabanier@gmail.com> wrote:
> Why not have the same logic as the canvas gradient stops?
> quote:
>
> If multiple stops are added at the same offset on a gradient, they must be
> placed in the order added, with the first one closest to the start of the
> gradient, and each subsequent one infinitesimally further along towards the
> end point (in effect causing all but the first and last stop added at each
> point to be ignored).
>
>
> So keyframes can then contain:
>
> from {...}
>
> 50% {...}
> 50% {...}
> to {...}
>
> and you'd animate from 0 to the first 50% and then from the second 50% to
> the end

That is a change from the current semantics, where individual
keyframes with the same selector occur at the same time.

~TJ
Received on Friday, 16 November 2012 04:48:52 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:02 GMT