I'm familiar with the Ajax/jQuery .load()
or php include()
which can be used to load other content into a div on a page.
Kindly take a look at this example I've posted: my site with page transitions
How I've set up this page is, the body is 100% of the screen with no overflow. There is the blue section which is 100% height and the red section which is 100% height positioned 100% from the top. When you click the button the blue div is scaled back and the red div is transitioned to top: 0;
.
My problem when you hit the back button, it doesn't go back to the blue section, it goes back to the previous page (blue page).
My question is how can I set this up so the red div (2nd one) will actually change the url (and load another php page into it using include();
or some other method)? For example when you click the button on the blue page, the red page will show up (with the included content) and the url will change to: davidfateh.com/red
. I realize hitting the back page won't give me the transition, but at least it will go back to the blue page, which is my goal.
Thanks for looking and for any advice! Cheers!