How to hide/show label when screen scroll down?

I want to hide a label when I scroll the page down .And show when scroll up. Also if keyboard is visible it will hide…
Advanced thanks