Sticky Header change from transparant to color when scrolling

Hello everyone, I want a sticky header that is transparent with a hero image in the back change to a color background lets say green. The hero image is not part of the sticky header.

See the screenshots


Thank you Matt.

You are looking for groups, which have stick to top settings.

Thank you Duncan, I know how the groupfunction is working, but not being able to scroll and change the background color. The sticky function works good.

Oh sorry I missed that. Might be possible to do something similar with some clever layering, but not a background color change per se.