I have tab that scrolls horizontally in my application as in below image.

My page navigates based on selected tab index. But i couldn’t view the tab button of the selected index on page load. Please tell me how to make the page scroll automatically to the selected index on page load as in the second image.