Change color as the nav -header to scroll down with?


I have my nav -header in transparent as low color should change to a red or orange because the texts are mescln with the header .

and tried to getScrollTop , and ng - class change , if the change under internamiente but visually is not Habro the menu only if there is applied