Re: [css3-transitions] Add direction selectors for transitions

Le 28/06/2013 17:36, Øyvind Stenhaug a écrit :
> This sounds like something that's already achievable:
>
> #my_element {
>     width: 50px;
>     height: 50px;
>     opacity: 0.2;
>     transition: width 1s 1s, height 1s, opacity 0.5s;
> }
>
> #my_element:hover {
>     width: 100px;
>     height: 100px;
>     opacity: 1;
>     transition: width 1s, height 1s 1s, opacity 0.5s 1.5s;
> }
>
> Transition properties are taken from the "to" state:
> http://dev.w3.org/csswg/css-transitions/#starting
>
> This also works for properties whose values can't be ordered (like
> 'color', 'background-position' and 'transform'). 
Well, I guess I have my answer, I don't know why I didn't see this.

Thanks for the tip, and sorry for the incovenience.


-- 
*Brice PARENT*

Received on Friday, 28 June 2013 15:51:22 UTC