How do I add a div on the bottom right of the page to take

How do I add a div on the bottom right of the page to take the user back to the top if it is clicked but only have it appear when the user scrolls down?