Answers for "gradient color html text example code"

CSS
35

how to use gradient as text color

h1 {
  font-size: 72px;
  background: -webkit-linear-gradient(#eee, #333);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
Posted by: Guest on February-26-2020
2

Adding gradient to text color

h1 {
  background: linear-gradient(
	270.97deg,
	#FFE580 -21.36%,
	#FF7571 -2.45%,
	#EA5DAD 26.84%,
	#C2A0FD 64.15%,
	#3BF0E4 108.29%,
	#B2F4B6 159.03% );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
Posted by: Guest on September-12-2021
0

Color gradient for text

.text {
  background-clip: text;
  -webkit-background-clip: text;
  color: rgba(0,0,0,.2);
}
Posted by: Guest on December-20-2021

Browse Popular Code Answers by Language