I’m not sure how to achieve that. I need to have a left-to-right color gradient with radial gradient so that both extreme ends are gradually fading away. Is that even possible?
My linear color gradient CSS is as follows:
div {
background: rgb(5, 75, 135);
background: linear-gradient(90deg, rgba(5, 75, 135, 1) 24%, rgba(166, 40, 46, 1) 69%);
height: 3em;
}
<div></div>
2
Answers
this would help:
background: radial-gradient( rgba(5, 75, 135, 1) 10%, rgba(166, 40, 46, 0.7) );
I don’t know exactly what you are looking for. You can achieve linear-gradient and radial-gradient using
background-blend-mode
linear-gradient(to right....
andradial-gradient(at left...
or vice-versa according to your need