-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathtext-shadow.css
More file actions
31 lines (29 loc) · 777 Bytes
/
text-shadow.css
File metadata and controls
31 lines (29 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
body {
background: #aaa;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}
h1 {
font-family: 'Montserrat', sans-serif;
text-transform: uppercase;
color: white;
font-size: 15vw;
background: linear-gradient(-90deg, rgb(223 223 223) 0%, rgba(190,190,190,1) 100%);
line-height: 1;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
position: relative;
}
h1:before {
content: attr(data-text);
-webkit-background-clip: none;
-webkit-text-fill-color: black;
position: absolute;
z-index: -1;
filter: blur(14px);
transform: skew(67deg, 0) translate(-20%, 15%) scaleY(0.5);
-webkit-mask-image: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(0,0,0,1) 100%);
padding: 0 22px;
}