/scroll_up

"Scroll to top" button made with CSS (no img)

Primary LanguageCSS

scroll_up

Simple "Scroll to top" button.

  • no jQuery
  • no need of adding new code to your project
  • only 2 files
  • button icon styled in CSS, no images needed

How to use

Add to your project 2 files:

<link href="scroll_up/css/scroll_up.css" rel="stylesheet" />
<script src="scroll_up/js/scroll_up.js"></script>

scroll_up automatically adds to the end of the body div.scroll_up element which shows up when the site is scrolled down by more than 300px.