Tumblr-like back-to-top Using jQuery.scrollTop()

by raymondralibi on Apr 07, 2011 | 0 Comment
tumblr like feature

Have you ever seen back-to-top button on tumblr dashboard? Try scrolling the page. Back-to-top button will appear on top-right of the page after the scroll has reached about 1000px from top.

See the demo

In this article I’m going to show you how to do it. First of all download the latest jquery and include it in your page.

Create link to top of page or just link to ‘#’

Give back-to-top link some style

Put this script into your javascript file

That’s all, enjoy your back-to-top link. See the demo

Back to top

Leave a Reply