Currently in the process of developing a website using React and focusing on optimizing the mobile version first. One feature I am working on is to have a sticky navigation bar that remains at the top after scrolling down. In the attached picture, there is also a button located on the right side. I would like this button to transition with the sticky navigation bar as users scroll down - initially it appears at the top, then moves along with the navigation once the user starts scrolling.
I am coding this website with React. Could someone provide guidance on how to achieve this effect?
Image link: https://i.stack.imgur.com/TiqBv.png