Create advanced headers

Dear admin

I want to create advanced header. This is almost impossible to do with other themes.
I create 2 Rows. Main row and Sub row. I want every time I scroll down to have only sub row stick. Every time I scroll up the Main row appears. Can we do this?

Thank you !