ModernBackToTopButton

ModernBackToTopButton adds a button to the right corner of any page that takes you back to the top of the page when pressed.

Customization
If you want to adjust the speed of the scroll up or the amount of scroll down you have to do for the button to appear and a bunch of other options, add the following lines before importing the script (for global.js) or to your community's Wikia.js page.

Scroll Speed
To adjust scroll speed add this: Where  is the speed, in milliseconds. Higher numbers result in slower scrolling and smaller numbers result in faster scrolling. Default value is 600.

Button Appearance
To adjust the "depth" you have to reach for the button to appear/disappear add this: Where  is distance down the page, in pixels, before the button appears. Higher numbers will make you scroll down further before the button appears. Default value is 800.

Button Format
You can also format the button any way you like with CSS. For example: The above CSS rules will make the button semi-transparent until hovered.

Disable Button's Fade In/Out Effect
To disable the fade effect add this: To re-enable the effect simply remove this line from your JS page. The fade In/Out effect for the button is On by default.