.test{
color: transparent;
font-size: 50px;
font-weight: bold;
transition: 0.5s;
background-clip: text;
background: linear-gradient(to right, green, blue);
}
<p class="test">Hello</p>
also when I type background-clip: and the autocomplete options come up for example: border-box, 'text' doesn't come up there at all and I've tried it on Microsoft Edge and Chrome and it still doesn't do anything at all is there any way to fix this?
I tried rearranging the properties in the CSS file and I used a new browser but that still did nothing at all
Your CSS code is addressing the
nameclass, but yourpelement has thetestclass. Change one so that they match.Additionally, you may need to add the
-webkit-background-clipCSS property for this code to work on Chrome. An example of the code functioning is shown below.