Re: [css3-images] Animatability of object-fit, object-position, image-resolution, and image-orientation

On Mar 28, 2012, at 11:16 PM, fantasai <fantasai.lists@inkedblade.net> wrote:

> Seem to have forgotten to update the spec with the Animatability field.
> Suggested values:
> 
>  object-fit:        no
>  object-position:   yes
>  image-resolution:  no
>  image-orientation: no
> 
> Good/objection?
> 
> ~fantasai

It seems kind of arbitrary to not allow animating of image-resolution, since it takes a number and unit for its value. Seems like it should be easy to do.

As for use cases, it could be used to animate the image size when you don't know what the actual width/height dimensions are (and want it to affect layout). It could also be used as a special effect to smoothly animate from, say, 0.25dpi to 1dppx at a fixed size. Or in a background at fixed background-size to sort of blur the image on hover, by reducing its resolution as you increase the opacity of some text in front of the background.

Received on Thursday, 29 March 2012 14:55:29 UTC