Skip to content

Commit 6c71b59

Browse files
committed
CSS Gradient Text Effect
1 parent 37641d6 commit 6c71b59

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>CSS Gradient Text Effect</title>
7+
<style>
8+
body {
9+
display: grid;
10+
place-items: center;
11+
min-height: 100vh;
12+
background: thistle;
13+
}
14+
h1 {
15+
font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
16+
font-size: 6ch;
17+
background: #000000;
18+
background: -webkit-linear-gradient(top, #000000, #f2120e);
19+
background: -moz-linear-gradient(top, #000000, #f2120e);
20+
background: linear-gradient(to bottom, #000000, #f2120e);
21+
background-clip: text;
22+
-webkit-background-clip: text;
23+
-moz-background-clip: text;
24+
-webkit-text-fill-color: transparent;
25+
-moz-text-fill-color: transparent;
26+
}
27+
</style>
28+
</head>
29+
<body>
30+
<h1>
31+
This World
32+
<br />
33+
Shall Know
34+
<br />
35+
Pain
36+
</h1>
37+
</body>
38+
</html>

0 commit comments

Comments
 (0)