Re: A wish for 2014: page transitions

On 16/01/2014 18:12, Sylvain Galineau wrote:

> Related - at least I think of it as related - I have also seen interest in transitioning from one MQ state to another i.e. when going from portrait to landscape I may want some level of animation between the two layouts. If that's desirable then effects from one page to the next are reasonable too.


This already works in WebKit, Blink and Firefox nightlies.
Test:

<style type="text/css">
   #foo {
     background-color: #33ff33;
     -webkit-transition: background-color 4s ease-in 0s;
     transition: background-color 4s ease-in 0s;
   }

   @media screen and (max-width: 500px) {
     #foo { background-color: red; }
   }

</style>
<p id="foo">test....</p>


</Daniel>

Received on Friday, 17 January 2014 08:00:05 UTC