VOOZH about

URL: https://www.geeksforgeeks.org/html/svg-lineargradientelement-x2-property/

⇱ SVG LinearGradientElement.x2 Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

SVG LinearGradientElement.x2 Property

Last Updated : 23 Jul, 2025

The SVG LinearGradientElement.x2 Property Returns an SVGAnimatedLength object corresponding to the attribute of the given LinearGradient element.

Syntax:

LinearGradientElement.x2

Return value: This property returns SVGAnimatedLength object that can be used get the x2 the LinearGradient element.

Example 1:

Output:

👁 Image

Example 2:

Output:

👁 Image

Example 3:

Output:

👁 Image
Comment