I would like to have a text that switches its color at a certain point x. I have provided a sample that uses the text twice to produce the result, with the switch at 45px. I
In Webkit only we have the -webkit-background-clip:text property/value.
body {
text-align: center;
}
h1 {
display: inline-block;
font-size: 36px;
background: linear-gradient(to right, red 0%, red 50%, blue 50%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
LONG HEADING TEXT