像GitHub的浏览器向前/向后滑动翻页效果 [英] Browser forward/backward sliding page effect like github

查看:280
本文介绍了像GitHub的浏览器向前/向后滑动翻页效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何能达到类似的效果,以浏览器的后退按钮/在github上前进按钮,同时浏览存储库?

How can I achieve a similar effect to the browser back-button/forward button in github while browsing a repository?

要体验一下试试这个: https://github.com/rogerdudler/git-guide

To experience it try this: https://github.com/rogerdudler/git-guide

和点击下面的任何HTML页面的:它会顺利加载(我不知道如何可以做到这一点),你就可以来回滑动您的浏览器的箭一样,如果你浏览了闪光的小程序

and click on any of the html pages below: it will load smoothly (I don't know how to achieve this either) and you will be able to slide back and forth with your browser's arrows like if you were browsing in a flash applet

推荐答案

我相信他们使用的是历史API这样做

其他相关答案:

  • GitHub的源动态导航
  • <一个href="http://stackoverflow.com/questions/4732407/implement-github-com-file-seemless-file-navigation">Implement github.com文件无缝文件导航
  • GitHub source dynamic navigation
  • Implement github.com file seemless file navigation

这篇关于像GitHub的浏览器向前/向后滑动翻页效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆