fy attribute | fy property
Gets or sets the y-coordinate for the focal point of a radial gradient.
![]() ![]() |
Syntax
| HTML |
|---|
<element fy="p" ... > |
| JavaScript |
|---|
p = object.fy |
Property values
Type: Object
The y-coordinate for the focal point of a radial gradient.
Standards information
- Scalable Vector Graphics: Gradients and Patterns, Section 13.4.3
Remarks
The fx and fy properties define the focal point for the radial gradient. The gradient is drawn such that the 0% gradient stop is mapped to the point (fx, fy).
If you do not specify the fy attribute, fy coincides with the presentational value of cy for the element, whether the value for cy is inherited or not. If the element references an element that specifies a value for fy, the value of fy is inherited from the referenced element.
You can animate the fy property.
See also
- SVGRadialGradientElement
- Reference
- fx
- r
Show:

