opacity vs fill-opacity in svg

后端 未结 4 971
旧巷少年郎
旧巷少年郎 2021-02-20 00:51

What is the difference in opacity vs fill-opacity in SVG?

I referred the docs for fill-opacity and opacity but I am confused what is meant by

4条回答
  •  爱一瞬间的悲伤
    2021-02-20 01:23

    fill-opacity controls the opacity for the fill color. opacity controls the opacity of the entire thing.

    Take a look at this demo: https://jsfiddle.net/DerekL/9mvrL66g/

提交回复
热议问题