How to do a navigation div that will follow the scroll containing in it anchors to navigate on click to part of the code using id l’s

how to do a navigation section that will follow scroll and when clicked it will navigate to part of the page in ionic