Interactive online courses HTML Academy
2026-03-09 12:56 Diff

The direction of the linear gradient can also be specified as an arbitrary angle, for example, 245°. The direction in degrees is specified using the unit deg. You can specify positive and negative angles. Examples:

background-image: linear-gradient (90deg, yellow, green); background-image: linear-gradient (-135deg, yellow, green);

The angles of the gradient are counted like this:

0deg corresponds to 12 o’clock, and the angle is counted clockwise. If the angle is specified with a negative value, for example, -90deg, then it is counted counterclockwise.

In this assignment, you need to write gradients to the remaining three “leaves” by analogy with the first: from the colored edge of the “leaf” to the black center of the “flower”.