VOOZH about

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

⇱ SVG LinearGradientElement.x1 Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

SVG LinearGradientElement.x1 Property

Last Updated : 23 Jul, 2025

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

Syntax:

LinearGradientElement.x1 

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

Example 1:

Output:

👁 Image

Example 2: 

Output:

👁 Image

Example 3:

Output:

👁 Image
Comment