Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 511 Bytes

File metadata and controls

19 lines (16 loc) · 511 Bytes

scrollToTop

Introduction A simple plug-in to add the scroll to top image/symbol to your web page

USAGE Initialize the plugin with custom options:

$(document).scrollToTop({
  bottom: "30px", // Bottom position
  right: "30px", // Right position
  bgColor: "#667eea", // Background color
  text: "↑ TOP", // Button text/icon
  fontSize: "14px", // Text font size
  scrollThreshold: 100, // Pixels to scroll before showing button
  duration: 300, // Animation duration in milliseconds
});