Answer the question
In order to leave comments, you need to log in
2 colors in background y?
Hello, is it possible to somehow change the background color not to 50/50, but for example 10% of one color 90% of another?
I tried it with linear-gradient and it turned out to be a gradient in the literal sense.
Answer the question
In order to leave comments, you need to log in
.loading {
--percent: 10%;
background: linear-gradient(90deg, rgba(0,200,0,1) var(--percent), rgba(255,255,255,1) var(--percent));
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question