最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

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

matteradmin3PV0评论
  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/

Post a comment

comment list (0)

  1. No comments so far