admin管理员组文章数量:1431904
- Using a modern browser, go to a project in GitHub (e.g., )
- 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?
- Using a modern browser, go to a project in GitHub (e.g., https://github./twitter/bootstrap)
- 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
2 Answers
Reset to default 7It 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/
本文标签: javascriptHow does GitHub do its fancy pagewipe effect when navigating repositoriesStack Overflow
版权声明:本文标题:javascript - How does GitHub do its fancy page-wipe effect when navigating repositories? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745593091a2665313.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论