VOOZH about

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

⇱ SVG LinearGradientElement.y2 Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

SVG LinearGradientElement.y2 Property

Last Updated : 23 Jul, 2025

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

Syntax:

LinearGradientElement.y2

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

Example 1: 

Output:

👁 Image

Example 2: 

Output:

👁 Image

Example 3: 

Output:

👁 Image
Comment