There are three types of gradients: linear, radial, and conic. The syntax is is declared on either the background (shorthand) or background-image property. To make the gradient go from left-to-right, we pass an additional parameter at the beginning of the linear- gradient() function.

20m read timeFrom css-tricks.com
Post cover image
Table of contents
Linear gradientsRadial gradientsConic gradientsRepeating gradientsAccessibilitySpecification

Sort: