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

[css-values] interpolate() function

From: Lea Verou <lea@verou.me>
Date: Fri, 29 Nov 2013 11:44:40 +0800
Message-Id: <851BB338-728D-4F7F-96B4-56DBC71E94FC@verou.me>
To: www-style list <www-style@w3.org>

I was wondering if we could rename cross-fade() to interpolate() and enable it for any animatable value type. There are many cases where I've needed to do this manually, especially for colours and angles and I presume it wouldn’t be hard to implement, as browsers have to implement the interpolation logic anyway. Furthermore, this could be useful for debugging transitions & animations, as it would enable authors to easily "step into" an animation, whereas right now debugging animations is a huge pain. Also, interpolating values manually is impossible when using variables, so this would help in that as well.


I can provide use cases if needed, just wanted to test the waters first and see what y'all think.

Received on Friday, 29 November 2013 03:45:05 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:37 UTC