W3C home > Mailing lists > Public > www-style@w3.org > March 2012

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

From: Brad Kemper <brad.kemper@gmail.com>
Date: Thu, 29 Mar 2012 07:54:53 -0700
Message-Id: <F4E225DB-7C91-4EEB-8EC8-1258C168027C@gmail.com>
Cc: "www-style@w3.org" <www-style@w3.org>
To: fantasai <fantasai.lists@inkedblade.net>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:48:53 GMT