I am currently working on a portfolio website project using HTML, CSS, PHP and JavaScript. I have almost completed it. There is one issue I am facing and having hard time fixing it. So I have made sticky navigation bar using IntersectionObserver
. And I have made the website responsive. So the sticky navigation bar is working fine with all the screens except for smaller mobile screens.
So basically I have attached IntersectionObserver
to home
section and it works fine for big screens by throwing one Intersecting entry
and displaying the sticky navigation, but for smaller screens as soon as I reach about-section
, it keeps throwing unlimited entries
('I checked them in console'). And I am not able to find why is it happening. A help will be much appreciated.
Here is the link to the project
, Just go to smaller screen where you can see hamburger menu icon and then try going just to the start of about-section
, the screen will keep shaking until you move the scroll from that position.