It's important to note that the issue at hand is more closely tied to SVG itself rather than React.
Have you considered whether your SVG is being included as an <img ...>
tag or if it's inline?
If it's presented as an image tag, implementing filters could be a viable solution.
However, for intricate SVG images with various colors, I suggest converting it into a component and utilizing it as inline code.
This approach offers greater control over the SVG elements, allowing you to easily modify the fill of paths or shapes to fill: white
.
In terms of handling its position on the page, there are several options available. You could monitor scroll position in relation to viewport height, or opt for a specific solution like React Waypoint for more targeted functionality.