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

[css-animation] Script access to property interpolator

From: Henrik Andersson <henke@henke37.cjb.net>
Date: Mon, 15 May 2017 19:04:00 +0200
To: www-style@w3.org
Message-ID: <5a8a9fcf-06e6-8486-9ec8-f99ca036625a@henke37.cjb.net>
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 17:05:29 UTC

This archive was generated by hypermail 2.3.1 : Monday, 15 May 2017 17:05:30 UTC