I am currently developing a fixed navbar at the top of a webpage with several SVGs inside anchor tags. I want the SVGs to appear black when displayed over lighter colored divs (other Vue components) and white when displayed over darker colored ones. The background colors of the divs behind the SVGs could be dark red, light blue, or any other color, but the SVG fill should always be white or black.
Is there a way to create a custom mix-blend-mode using SCSS or another method where I can apply filters to achieve the desired effect? For instance, if a dark blue is filtered 100%, it should result in a lighter color that would then transition to white.
Currently, I am utilizing a solution involving a scroll handler that monitors the positions of divs, their background-color values, and adjusts inline styles on the SVGs accordingly. However, I am seeking a more efficient SCSS/CSS approach instead of relying solely on JavaScript for this task.