I've been trying, for a few days, to add an animation between two different HTML pages/files (index.html -> about.html
). My idea is to animate/have a transition when going from one page to the other: in my case from the index.html
to the about.html
page.
I found a lot of answers on Google and on StackOverflow, but the problem is that the transition happens on the same page which means that the HTML
code for both pages is in the same file and my index.html becomes unreadable, especially if I am working on a project that's quite big.
I saw that Google Photos had something quite similar to what I want to achieve. Just open Google Photos and click on an image, and as you might notice, the URL changes from https://photos.google.com
to https://photos.google.com/photo/PHOTO_ID
and an animation occurs.
Any idea on how Google does this or how I can do it? :) Any help would be greatly appreciated!
The solutions I'd rather avoid are:
- AJAX (but it's ok if Google uses it, and I doubt they do)
- Having the
HTML
for both pages in a single, one file. - AngularJS (I'd prefer pure JS)
( this isn't a duplicate, I'd like to know how Google did it ;) )