© Mikael Olsson 2019
Mikael OlssonCSS3 Quick Syntax Referencehttps://doi.org/10.1007/978-1-4842-4903-1_15

15. Gradients

Mikael Olsson1 
(1)
Hammarland, Finland
 

A gradient is a color fill that blends smoothly from one color to another. Introduced in CSS 3, the gradient functions can be used anywhere an image is required according to specification, but they are mainly used together with the background or background-image properties to create a background gradient.

Linear Gradients

The linear-gradient() function defines a gradient that provides a smooth transition from one color to another.
linear-gradient([<angle> | to <side-or-corner>]
                {, <color stop> [stop position]} (2-∞) )
In its simplest form, the linear gradient consists of two colors ...

Get CSS3 Quick Syntax Reference: A Pocket Guide to the Cascading Style Sheets Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.