VOOZH about

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

⇱ SVG scale Attribute - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

SVG scale Attribute

Last Updated : 31 Mar, 2022

The scale attribute decides the displacement scale factor that must be used on a <feDisplacementMap> filter primitive. Only <feDisplacementMap> element is using this attribute.

Syntax:

scale = "number"

Attribute Values: The scale attribute accepts the values mentioned above and described below

  • number: It is either an integer or a number with a fractional component. The default value is equal to 0.

The below examples illustrate the use of the scale attribute.

Example 1:

Output:

👁 Image

Example 2:

Output:

👁 Image
Comment