CSS Transitions: Difference between revisions

m
→‎Comparison with SMIL animations: make this a bigger hader
(→‎Under-specified Behavior: Add some information about css transitions and svg content)
m (→‎Comparison with SMIL animations: make this a bigger hader)
Line 52: Line 52:
* When animating to or from 'auto' (e.g. for the 'width' property), webkit animates, but treats 'auto' as 0 (in other words, if you don't have a transition active for width, it would end up at a different value than if a transition ''is'' active for width.  This is clearly a bug).  When changing the property to a percentage (e.g. width:50%), webkit does not animate at all, it just updates the value immediately to the new value.
* When animating to or from 'auto' (e.g. for the 'width' property), webkit animates, but treats 'auto' as 0 (in other words, if you don't have a transition active for width, it would end up at a different value than if a transition ''is'' active for width.  This is clearly a bug).  When changing the property to a percentage (e.g. width:50%), webkit does not animate at all, it just updates the value immediately to the new value.


== Comparison with SMIL animations ==
= Comparison with SMIL animations =
It would be very nice if we could share as much code as possible between the CSS Transitions feature and SMIL animation.  dholbert already has a patch to animate CSS with SMIL described at [[SVG:SMIL+CSS]].  Here I'll list a few thoughts about how SMIL animation and CSS transitions compare (disclaimer: I have only read through the SMIL animation spec quickly, so I might not have a full understanding of the details of SMIL animation)
It would be very nice if we could share as much code as possible between the CSS Transitions feature and SMIL animation.  dholbert already has a patch to animate CSS with SMIL described at [[SVG:SMIL+CSS]].  Here I'll list a few thoughts about how SMIL animation and CSS transitions compare (disclaimer: I have only read through the SMIL animation spec quickly, so I might not have a full understanding of the details of SMIL animation)


14

edits