Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github-style page transitions?

Is there any example code for something like that (and somehow changing the URL without forcing a reload, with no #)? Is it using HTML5 to replace history?

like image 878
jmoon Avatar asked Apr 28 '11 19:04

jmoon


1 Answers

They explain how they do this in their blog post and yes, it uses the HTML5 History API.

They even show you exactly how it's done in their jquery-pjax project.

Also, you can get example code for anything you see on the web via view source, finding the Javascript file, and then if it's minified passing it through something like http://jsbeautifier.org/

like image 121
Michael Greene Avatar answered Oct 12 '22 04:10

Michael Greene