Choose container to stick within sticky header

Would like the ability to stick a specific container within the header rather than the full header.

For example, a logo is in the top container and the nav menu is in the bottom container. On scroll only the bottom container with the nav menu sticks and logo does not.