page transitions using javascript

Posted by hasan on Stack Overflow See other posts from Stack Overflow or by hasan
Published on 2010-04-13T15:45:38Z Indexed on 2010/04/13 18:43 UTC
Read the original article Hit count: 314

Filed under:

hey,

i saw this on a site a couple of days ago and i cant seem to find it again.

in any case, this is what was on the site:

the page opened regularly when you entered the url. upon clicking one of the links on the page, it "transitioned" to the next page (there was a color change). and the url in the address bar was changed to reflect that. eg: if the background was blue on site.com, when clicking on the about link, the background would change to green and the browser would show site.com/about. and so on.

also, if the url entered was site.com/about, the bg would be green and on cliking the home page, the site would transition from green to blue and browser would show site.com

im interested in finding out how this was done. searching on google got me the meta-refresh tag, but the ffect was much more complex and worked on all browsers.

is there any other method out there?

© Stack Overflow or respective owner

Related posts about JavaScript