- From: François REMY <francois.remy.dev@outlook.com>
- Date: Mon, 20 May 2013 10:50:06 +0200
- To: Cameron McCormack <cam@mcc.id.au>, www-style list <www-style@w3.org>
The reason custom properties are not animated is that it would result in strange results: #element { var-x: 0px; top: get(var-x); transition: var-x 1s, top 1s; } #element:hover { var-x: 10px; } If var-x was animated, top changes of value constantly so the actual transition duration on top would be 2s, right? <do not forget variable references are resolved before computed time> Also, you don't know the type of the value so it would only work for values of the same unit. ---------------------------------------- > Date: Mon, 20 May 2013 16:38:24 +0800 > From: cam@mcc.id.au > To: www-style@w3.org > Subject: [css-variables] are variables animatable? > > There is no "Animatable" line in the property declaration box for var-* > and no mention of animation in the spec. My guess is that the intention > is for them not to be animatable, since there is no discussion about > what animatable variables would actually mean. >
Received on Monday, 20 May 2013 08:50:34 UTC