Code to make menu stick to page and move positions upon scroll

Question:
Using Wix studio. Looking to get code to make my button stick to the page upon scrolling AND change positions to the middle of the screen upon scrolling