Open today 10am — 5:45pm Buy Tickets »
Open today 10am – 5:45pm
« Back to Modules Index

Back To Top

Options

You can see a working demo of the back to top module on this page. The one configurable option for this module is the trigger point. By default, the button shows once user has scrolled past 65% down the page. You can adjust the trigger point by updating the attribute data-trigger-value="" on .amnh-back-to-top.

How it works:

  1. Once user has scrolled 65%* down the page, scrolling up will show the back to top button on the bottom right corner of the page.
  2. When scrolling up higher than 40%** of the page, back to top button will hide.
  3. Clicking on back to top button will take you to the top of the page.

* This is our default value, used as an example here. This would be whatever value you set as described above. ** This is a set value. Is always the same across any page, independtly of trigger point value, can only be modified in code.