W3C home > Mailing lists > Public > www-style@w3.org > April 2010

Re: Are CSS animations a done deal?

From: Brad Kemper <brad.kemper@gmail.com>
Date: Wed, 7 Apr 2010 10:07:23 -0700
Cc: "www-style list" <www-style@w3.org>, "Lars Gunther" <gunther@keryx.se>
Message-Id: <BB0D34E5-6C99-4346-A78E-17D2B3A0BDD7@gmail.com>
To: "Anne van Kesteren" <annevk@opera.com>

On Apr 7, 2010, at 9:22 AM, Anne van Kesteren wrote:

>> And of course:
>> - Switching between pages on a site. Why not animate the whole page?
> 
> These seems somewhat fundamentally different and would require a separate solution regardless of how we go about things.

I'd like to see that. It has occurred to me before that maybe there could be a pseudo-element/class to select the next page. Something like this:

::next-page-root:not-loaded { position:relative; left:100%; }
::next-page-root { left:0; transition(left, 3s); }
::previous-page-root:not-loaded { position:relative; left:-100%; }
::previous-page-root { left:0; transition(left, 3s); }

Of course, there would need to be security restrictions, such as limits to how long the transition could last (5s?), and once the transition ends it could no longer affect the presentation of the next page at all. And it's z-index would always be higher than the current page. 

I think you can almost do this anyway by loading your new links into an offscreen iframe that is full height and width. But that wouldn't work with the back button or pages loaded in other ways.

Received on Wednesday, 7 April 2010 17:08:02 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:26 GMT