https://codepen.io/Nonverbis/pen/vYJQvaw
<div class="gradient">
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
</div>
.gradient {
background: rgb(5,75,113);
background: linear-gradient(90deg, rgba(5,75,113,1) 0%, rgba(5,75,113,1) 17%, rgba(255,255,255,0) 50%);
font-weight: bold;
padding: 1rem;
}
I have organized a gradient background.
But I have failed to make a mirror gradient for the text.
I mean that over the dark blue background I'd like to have a white text but gradually transferring into blue one (rgb(5,75,113)).
Maybe you'll find this diagram useful:
I suppose that:
- 0-25 % - white.
- 25-35 % - blue, maybe with a white shadow.
- 35 % - blue.
But this is my potshot. Please, organize the color of the second section as you find it suitable.