SVG fill color transparency / alpha?

后端 未结 5 1011
半阙折子戏
半阙折子戏 2020-11-29 15:40

Is it possible to set a transparency or alpha level on SVG fill colours?

I\'ve tried adding two values to the fill tag (changing it from fill=\"#044B94\"

5条回答
  •  温柔的废话
    2020-11-29 16:02

    Use attribute fill-opacity in your element of SVG.

    Default value is 1, minimum is 0, in step use decimal values EX: 0.5 = 50% of alpha. Note: It is necessary to define fill color to apply fill-opacity.

    See my example.

    References.

提交回复
热议问题