-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
144 lines (141 loc) · 3.72 KB
/
test.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
span{
font-size: 20px;
opacity: 0;
border: 1px solid #000;
display: inline-block;
}
.se{
animation: se 2s linear infinite;
}
@keyframes se {
50%{
opacity: 0;
margin: 0;
transform: rotateZ(0);
}
75%{
opacity: 1;
margin-left: 50px;
transform: rotateZ(45deg);
}
100%{
opacity: 0;
margin-left: 0;
transform: rotateZ(0);
}
}
.fr{
animation: fr 2s linear infinite;
}
@keyframes fr {
0%{
opacity: 0;
margin-left: 0;
transform: rotateZ(0);
}
25%{
opacity: .5;
margin-left: 50px;
transform: rotateZ(45deg);
}
50%{
opacity: 1;
margin-left: 0;
transform: rotate(0);
}
100%{
opacity: 1;
margin-left: 0;
transform: rotateZ(0);
}
}
.box{
margin: 200px;
width: 200px;
height: 100px;
border: 1px solid #000;
transform: rotateZ(45deg);
animation: ro 2s linear infinite;
}
@keyframes ro {
50%{
transform: rotateZ(90deg);
}
100%{
transform: rotateZ(0);
}
}
.top-shadow{
height: 200px;
margin-top: 100px;
background-color: lightblue;
}
body::before{
content: '';
display: block;
height:10px;
background: #000;
position: fixed;
top: -10px;
left: 0;
width: 100%;
-webkit-box-shadow: 0 0 10px rgba(0,0,0,.8);
box-shadow: 0 0 10px rgba(0,0,0,.8);
}
a[href^="http"]:empty::before{
content: attr(href);
pointer-events: none;
position: relative;
}
.text{
color: transparent;
text-shadow: 0 0 5px rgba(0,0,0,.5);
}
h2[data-text]{
position: relative;
}
h2[data-text]::after{
content: attr(data-text);
position: absolute;
z-index: 10;
color: #e3e3e3;
top: 0;
left: 0;
-webkit-mask-image: -webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,0)),color-stop(50%,rgba(0,0,0,0)),to(rgba(0,0,0,0)));
}
span{
background: linear-gradient(to right, red, blue);
-webkit-background-clip: text;
color: transparent;
}
h1{
position: relative;
color: yellow;
}
h1:before{
content: attr(text);
position: absolute;
z-index: 10;
color:pink;
-webkit-mask:linear-gradient(to left, red, transparent );
}
</style>
</head>
<body>
<div class="top-shadow">
<h1 text="还是没有变化啊">还是没有变化啊</h1>
<div class="text">这是一个测试页面</div>
<a href="http://www.baidu.com"></a>
<h2 data-text="哈哈哈">哈哈哈</h2>
<span>变不变啊</span>
</div>
</body>
</html>