Floating header

Hi everyone
How can I create a transition for a prototype like this video?