Show the title in the header when scrolling down

Header
This is the main title of page
This is the main title of page