VOOZH about

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

⇱ SVG LineElement.x2 Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

SVG LineElement.x2 Property

Last Updated : 30 Mar, 2022

The SVG LineElement.x2 property is used to return an SVGAnimatedLength object corresponding to the attribute of the given line element.

Syntax:

LineElement.x2

Return Value: This property returns an SVGAnimatedLength object that can be used to get the "x2" value and other properties of the line element.

Example 1: 

Output:

👁 Image

Example 2: 

Output:

👁 Image
Comment