you can listen scroll event and calculate the offset from top to calculate when the button should be visible Check here Scroll to top
Add an id to the section you want to go to and add the section's id as the link to the button. If that's what you are asking. ๐ Example If not, Could you elaborate? ๐