Is there a property that contains the angle of a linear gradient?
no. What’s the use case?
I’m exporting a linear gradient to the CSS background property. That uses degrees to describe the angle of the gradient line instead of start point and end point (x1,y1,x2,y2) that SVG uses.
The first argument to the function specifies the gradient line, which gives the gradient a direction and determines how color-stops are positioned. It may be omitted; if so, it defaults to ‘
The gradient line’s direction may be specified in two ways, …using keywords or using angles:
For the purpose of this argument, ‘
0deg’ points upward, and positive angles represent clockwise rotation, so ‘
90deg’ point toward the right.