+ Follow MΛX DΛVIS on Tumblr

Back to top button

The 'back to top' button is a very populair tool lately. A lot of blogs and websites use it so visitors can easely go to the top of their blog/website if they have an infinite scroll script installed.

DEMO

To see the demo, simply scroll down and the 'back to top' button will fade in at the bottom right corner. Click it and the window will slide back to the top of the page, the button will fade out once you reach the top as well.

Javascript part

Add the javascript at the top of your theme/website code.
Where do I find the code of my theme?

CSS part

The CSS part has to be between the <style type="text/css"></style> of your website/theme code.
Where do I find the code of my theme?