move color and opacity of the SVG from script to styles