简体   繁体   中英

Does anyone know how tumblr's homepage transitions from page to page?

When you go to http://www.tumblr.com/ and click on log in at the top it smoothly transitions without flickering like other webpages these days. What technology does tumblr use to achieve this? HTML5, how so?

It is actually the same page; they simply use the HTML5 history api ( pushState() ) to modify the URL in the address bar.

See http://html5demos.com/history for a simple demo and http://diveintohtml5.ep.io/history.html for details and a how-to.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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