VOOZH about

URL: https://www.geeksforgeeks.org/html/svg-flood-opacity-attribute/

⇱ SVG flood-opacity Attribute - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

SVG flood-opacity Attribute

Last Updated : 31 Mar, 2022

The flood-opacity attribute indicates the opacity value to use across the current filter primitive subregion.

Syntax:

flood-opacity="flood"

Attribute Values:

  • flood: A number or percentage indicating the opacity value to use across the current filter primitive subregion

We will use the fill-opacity attribute for setting the opacity of fill-color.

Example 1: 

Output:

👁 Image

Example 2: 

Output:

👁 Image
Comment