forked from FirmanKurniawan/HTML-Projects
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path3d-text-effect.html
More file actions
34 lines (32 loc) · 831 Bytes
/
3d-text-effect.html
File metadata and controls
34 lines (32 loc) · 831 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
32
33
34
<style>
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;
}
</style>
<h1 data-text="shadow">Shadow</h1>