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

Re: [css3-transitions] Interpolating between values from different information sources

From: Brad Kemper <brad.kemper@gmail.com>
Date: Mon, 1 Nov 2010 17:43:19 -0700
Message-Id: <4601801C-FA0A-4798-BFCB-ADD20D3707A9@gmail.com>
Cc: www-style list <www-style@w3.org>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
On Nov 1, 2010, at 4:10 PM, "Tab Atkins Jr." <jackalmage@gmail.com> wrote:

> The specific idea I came up with lets us address both of those in a
> consistent way together, such that you can always interpolate between
> the two.  You can't do that with an explicit switch between two
> different behaviors.

In theory, you could. In transitioning from a fixed angle to a corner-to-corner angle, for instance, you just keep rotating the angle until it stretches from one corner to the other, and for the very last step, switch to the keyword version with the angle converted (for the reverse animation, do the conversion as the very first step).  For any 'as-square' angle in my syntax, there would be an equivalent non-stretchy angle. The numbers would jump at the beginning or end, due to the conversion, but for any step along the way, there would be a simple answer to the question of what the angle is. The keyword is there to handle different sized rectangles, but there is still a simple-angle equivalent for any box involved. It might even be handy to know what that angle is through the CSSOM when not transitioning. 
Received on Tuesday, 2 November 2010 00:44:23 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:34 GMT