Was giving a try to fix the menu content to the top when the page scrolls and also when scrolling the particular scroll container link should get highlighted and the scrolling should be smooth which supports all the devices, without lagging.
Expected When I scroll to Link 2 data then the Link 2 menu tab should highlited ans also if i click on the link then also it should scroll to corresponding section.
Here it is what I tried:
HTML:
<div class="header_part">Header Part</div>
<div class="section_stick">
<ul>
<li><a href="#Link1">Link1</a></li>
<li><a href="#Link2">Link2</a></li>
<li><a href="#Link3">Link3</a></li>
<li><a href="#Link4">Link4</a></li>
</ul>
</div>
<div id="Link1">Link1 data</div>
<div id="Link2">Link2 data</div>
<div id="Link3">Link3 data</div>
<div id="Link4">Link4 data</div>
Please help me out with the changes and a sample demo.