简体   繁体   English

如何在使用jQuery加载页面时使Github效果

[英]How to make the Github effect at loading a page with jQuery

Have you seen that in github (and also in the new hotmail) the load of a new page do not need to reload all the page but only a small part of it (with left-slide effect). 您是否已在github(以及新的hotmail)中看到新页面的加载不需要重新加载所有页面,而只需重新加载其中的一小部分(具有左滑效果)。 Also have you notice that the URL change but we are not loading from cero that page. 另外,您是否注意到URL发生了变化,但我们并未从该页面加载该页面。

I guess they use something like ajax but not sure, also no idea how do they change the url of the page (it is possible with js). 我猜他们使用诸如ajax之类的东西,但不确定,也不知道他们如何更改页面的url(js可以实现)。

Thanks 谢谢

Take a look at this following tutorial for examples of working with jQuery and sliding effects. 看一下以下教程,了解使用jQuery和滑动效果的示例。 Github is also making heavy use of fadeIn effects etc. Hopefully that should point you in the right direction! Github还大量使用了FadeIn效果等。希望这可以为您指明正确的方向!

jQuery Sliding Samples jQuery Animate jQuery fadeIn jQuery滑动样本 jQuery动画 jQuery fadeIn

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM