forked from maheshwar2611/hacktober1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path3DHacktoberfest.html
65 lines (63 loc) · 1.88 KB
/
3DHacktoberfest.html
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html>
<head>
<style>
background-image: radial-gradient(circle, #cfcfcf, #bcb9bc, #aba3a8, #9c8e91, #8c7979);
.text-3d {
text-transform: uppercase;
font-size: 130px;
color:#eee;
position: absolute;
top:50%;
left:50%;
transform: translate(-50% ,-50%);
}
.text-3d {
text-shadow: /* first set */
0 1px 0 rgb(190,190,190),
0 2px 0 rgb(185,185,185),
0 3px 0 rgb(180,180,180),
0 4px 0 rgb(175,175,175),
0 5px 0 rgb(170,170,170),
0 6px 0 rgb(165,165,165),
0 7px 0 rgb(160,160,160),
/* second set */
0 1px 5px rgba(0,0,0,.05),
0 3px 5px rgba(0,0,0,.10),
0 5px 10px rgba(0,0,0,.15),
0 7px 10px rgba(0,0,0,.20),
0 10px 15px rgba(0,0,0,.25);
}
.text-3d {
transition: all 0.3s ease-in-out;
}
.text-3d:hover {
text-shadow:
0 1px 0 rgb(190,190,190),
0 2px 0 rgb(185,185,185),
0 3px 0 rgb(180,180,180),
0 4px 0 rgb(175,175,175),
0 5px 0 rgb(170,170,170),
0 6px 0 rgb(165,165,165),
0 7px 0 rgb(160,160,160),
0 8px 0 rgb(155,155,155),
0 9px 0 rgb(150,150,150),
0 1px 5px rgba(0,0,0,.05),
0 5px 5px rgba(0,0,0,.10),
0 10px 10px rgba(0,0,0,.15),
0 15px 10px rgba(0,0,0,.20),
0 20px 15px rgba(0,0,0,.25);
transform: translate(-51%,-51%);
transition: all 0.3s ease-in-out;
}
.text-3d{
cursor: pointer;
}
</style>
</head>
<body>
<center>
<span class="text-3d"> <h1>I love hacktoberfest!</h1></span>
</center>
</body>
</html>