-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathletter3d.html~
72 lines (67 loc) · 1.46 KB
/
letter3d.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
66
67
68
69
70
<script src="js/prefixfree.min.js"></script>
<script src='js/jquery.js'></script>
<link rel="stylesheet" href="css/letter3d.css" type="text/css" />
<style>
h1 {
text-align: center;
text-transform: uppercase;
font-size: 3em;
font-color:"red"
letter-spacing: 0.1em;
/*color: #EEE;*/
color: #EFF;
animation: rotate 2s ease-in-out alternate infinite;
}
h1:before {
content: attr(data-shadow);
/*color: transparent;*/
color:"red";
text-shadow: 0 0 15px #111;
position: absolute;
z-index: -1;
margin: -0.1em 0 0 0;
font-color:red
animation: skew 2s ease-in-out alternate infinite;
transform-origin: bottom;
}
@keyframes rotate {
from {
transform: rotateY(-10deg);
text-shadow: 1px -1px #CCC,
2px -1px #BBB,
3px -2px #AAA,
4px -2px #999,
5px -3px #888,
6px -3px #777;
}
to {
transform: rotateY(10deg);
text-shadow: -1px -1px #CCC,
-2px -1px #BBB,
-3px -2px #AAA,
-4px -2px #999,
-5px -3px #888,
-6px -3px #777;
}
}
@keyframes skew {
from {
transform: scaleY(0.3) skewX(-15deg);
}
to {
transform: scaleY(0.3) skewX(-20deg);
}
}
footer {
position: fixed;
bottom: 0;
right: 0;
font-size: 13px;
background: #DDD;
padding: 5px 10px;
margin: 5px;
}
</style>
<h1 data-shadow="CSS 3D Lettering">
CSS 3D Lettering
</h1>