How to make Linear gradient color lighter in css?

6th Dec 2019, 1:51 PM
Vaishali Bishtaniya
2 Answers
+ 1
could you please go into more detail about what you mean with 'maming the color lighter'.. Do you want to brighten up a colour e.g. make blue appear like light blue
11th Dec 2019, 1:14 PM
Jakob Meier
Jakob Meier - avatar
To make a linear gradient color lighter in CSS, you can increase the value of the lightness property in the hsl color code. For example, to make a gradient that starts with a dark red and fades to a lighter red, you could use the following CSS: background: linear-gradient(to right, hsl(0, 100%, 20%), hsl(0, 100%, 80%)); https://code.sololearn.com/W77C7POf6Ptc/?ref=app
7th Dec 2022, 3:57 PM
Calviղ - avatar