Different header on home page to other pages - is it possible?

At the moment I have an opaque header on my pages and when I scroll the header changes to black. However I want it to remain opaque on the home page… is there a way to have different header settings on the homepage to the other pages? Possibly a code?

Probably the best way is to create two headers (e.g. using 2 boxes) and to work with show/hide to display the right header on the right page.