[Cloneable] Changing logo and menu color based on section
Change logo and menu colors based on the section.
When developing a website for a client, we wanted the logo and menu to change colors based on the section. On white sections, we wanted to use the color logo, and on dark sections, we wanted to use the variation of the white logo.
As an alternative to manual interaction, we decided to develop this functionality with Javascript and CSS. The Javascipt code measures the section size and does the rest for us!