Fixed
The button stays fixed at the bottom-right of the viewport.
UTILITY-01
The source-backed button is fixed to the bottom-right of long pages and appears after scrolling.
Scroll test
The source script shows the button once the page scroll position is greater than 520px.
The source behaviour scrolls the page smoothly back to the top.
Long-page spacer
The button stays fixed at the bottom-right of the viewport.
The source CSS uses a circular navy control with a white arrow.
The source CSS scales from 48px desktop to 44px mobile.
The button starts hidden with opacity zero and pointer events disabled.
The button gains the source `is-visible` state once the scroll threshold is crossed.
The click action uses the source smooth scroll behaviour to return to the page top.
Bottom of demo
Use the fixed circular arrow to return to the top.