W3C home > Mailing lists > Public > www-style@w3.org > May 2017

Re: [css-animation] Script access to property interpolator

From: Brian Birtles <bbirtles@mozilla.com>
Date: Tue, 16 May 2017 07:56:05 +0900
Message-ID: <CAF-W_FS0QV8VJmVKRS148VKR6ThUG_QvmhW-iWpLBESUKNjneg@mail.gmail.com>
To: Henrik Andersson <henke@henke37.cjb.net>
Cc: "www-style@w3.org list" <www-style@w3.org>
Hi Henrik,

Yes, I agree this seems like a reasonable request and is something we have
been considering in the Web Animations API. Would you mind filing an issue
on the Web Animations spec?[1]

Thank you.

Best regards,

Brian

[1] https://github.com/w3c/web-animations/issues

On Tue, May 16, 2017 at 2:04 AM, Henrik Andersson <henke@henke37.cjb.net>
wrote:

> There are many tricky rules for how to interpolate css properties for
> animation. The transform matrix being one of the more complicated examples.
>
> Scripting will surely find good use for a way to interpolate between
> property values on demand. Perhaps to do some crazy betterer animation
> engine. Perhaps to do something crazy that nobody else would have
> thought of.
>
> Only one problem, there is no way to do it. There is no interface to ask
> the user-agent to interpolate between two properties for a given position.
>
> Keyframes seem very useful to be interpolated between with, but they do
> have one complicating factor: they have associated times. Some uses
> would benefit from being able to interpolate on a ratio of 0 % to 100 %
> progress. As such I ask for an interface that supports a number in the
> range of 0 to 1 to specify the interpolation progress.
>
>
Received on Monday, 15 May 2017 22:56:39 UTC

This archive was generated by hypermail 2.3.1 : Monday, 15 May 2017 22:56:40 UTC