javascript - Transitions between pages with refresh -
today found website: http://skainteractive.com/agencia/
when change 1 page another, it's simple url change, refresh page. thing is, manage create effect on page viewing before goes new page.
i took @ source code, wasn't able find out how did that. know there ways that, know how did it. cause looks well.
here example of use of effect: http://www.casadacalcada.com/
how can that?
they not transitioning between pages. in fact, in same page landed.
what doing is:
loading html via ajax requests. first site, html embedded in json response, along other data. once response received, extract html response , put on current page.
they're using history api appear if moving browser across pages changing page's url , modifying browser's history make , forward buttons work.
Comments
Post a Comment