To add transparency, we use the rgba() function to define the color stops. The last parameter in the rgba() function can be The last parameter in the rgba() function can be a value from 0 to 1, and it defines thethe rgba() function can be a value from 0 to 1, and it defines the transparency of the color: 0 indicates full transparency, 1 indicates full color (no transparency). The following example shows a linear gradient that starts from the left. It starts fully transparent, transitioning to full color red:The following example shows a linear gradient that starts from the left. It starts fully transparent, transitioning to full color red:
The following example shows a linear gradient that starts from the left. It starts fully transparent, transitioning to full color red:
To add transparency, we use the rgba() function to define the color stops. The last parameter in the rgba() function can be a value from 0 to 1, and it defines the transparency of the color: 0 indicates full transparency, 1 indicates full color (no transparency).
The following example shows a linear gradient that starts from the left. It starts fully transparent, transitioning to full color red: