最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How does GitHub do its fancy page-wipe effect when navigating repositories? - Stack Overflow

programmeradmin1浏览0评论
  1. Using a modern browser, go to a project in GitHub (e.g., )
  2. Click a subdirectory.

See the page-wipe effect before the subdirectory page loads? How does that work?

Update: More specifically, how does this happen perfectly and seamlessly before the next page is loaded? Can clicks be delayed? Is the next page loaded in the background?

  1. Using a modern browser, go to a project in GitHub (e.g., https://github./twitter/bootstrap)
  2. Click a subdirectory.

See the page-wipe effect before the subdirectory page loads? How does that work?

Update: More specifically, how does this happen perfectly and seamlessly before the next page is loaded? Can clicks be delayed? Is the next page loaded in the background?

Share Improve this question edited Nov 9, 2011 at 15:54 a paid nerd asked Nov 9, 2011 at 15:39 a paid nerda paid nerd 31.6k31 gold badges140 silver badges180 bronze badges 1
  • Do you mean the animation or the nice url for every slide? – Yoshi Commented Nov 9, 2011 at 15:52
Add a ment  | 

2 Answers 2

Reset to default 7

It uses history.pushState (part of the HTML5 history API) along with some sliding effects. See this link for a plugin + demo.

Also, just found Github's blog post on the topic!

Seeing that github uses jquery, this is probably the answer you're looking for: http://api.jquery./category/effects/

发布评论

评论列表(0)

  1. 暂无评论