-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtext-shadow.html
79 lines (66 loc) · 1.4 KB
/
text-shadow.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
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="main.css">
<title>CSS Art | Text Shadow</title>
</head>
<body>
<style>
@keyframes jog {
0% {
/* text-shadow: 10px 10px 2px green; */
}
50% {
text-shadow:
-10px -10px 2px purple,
10px -10px 2px tomato,
10px 10px 2px turquoise;
}
100% {
/* text-shadow: 10px 10px 2px green; */
}
}
body {
margin: 0;
padding: 0;
}
* {
box-sizing: border-box;
}
.content {
display: grid;
justify-items: center;
align-items: center;
height: 100vh;
background: linear-gradient(#fff8ef, #fff)
}
.content>div {
display: flex;
justify-content: center;
}
h1 {
position: relative;
text-shadow:
0 0 2px purple,
0 0 2px tomato,
0 0 2px turquoise;
animation-duration: 3s;
animation-name: jog;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
</style>
<div>
<header class="art-page-header">
<a href="index.html" class="app-text-link">
<span>index.html</span>
</a>
</header>
<div class="content">
<h1>Text Shadow Test</h1>
</div>
</div>
</body>
</html>