W3C home > Mailing lists > Public > www-style@w3.org > June 2013

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

From: Brice PARENT <briceparent@free.fr>
Date: Fri, 28 Jun 2013 17:50:53 +0200
Message-ID: <51CDB0DD.1060702@free.fr>
To: www-style@w3.org
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

This archive was generated by hypermail 2.3.1 : Friday, 28 June 2013 15:51:22 UTC