Andreik289
KPCKevin Powell - Community
•Created by Andreik289 on 8/30/2023 in #front-end
IntersectionObserver for multiple targets
Basically I want to have a fixed button for a quick navigate at top of the page but I don't want to display the button for first few top elements. I have this code pen with an example of what I tried but it works partially. Sometimes the Up button disappear even if I am scrolling in the divs where I want to display the button.
https://codepen.io/Andreica289/pen/qBLZvRg
I appreciate each insight on this or any other approach to create a fixed button after a certain amount of page has been scrolled.
7 replies