Hello,
You can consider using something like this:
[ch_pre]
var elHeader = $('#header'),
elHeaderWrap = $('#header-wrap');
window.addEventListener( 'scroll', function() {
var scrolledSection = SEMICOLON_onePageCurrentSection();
if( 'wrapper' === scrolledSection ) {
return;
}
if( 'section-services' === scrolledSection ) {
elHeader.addClass( 'dark' );
elHeaderWrap.addClass( 'bg-transparent' );
} else {
elHeader.removeClass( 'dark' );
elHeaderWrap.removeClass( 'bg-transparent' );
}
}, { passive: true });
[/ch_pre]
Add the above code at the bottom of the Page after the js/functions.js JS File Linking.
This should definitely work fine. Hope this Helps!
Let us know if we can help you with anything else or if you find any further issues.