回答編集履歴
1
回答編集
test
CHANGED
@@ -1,33 +1,285 @@
|
|
1
|
-
|
1
|
+
回答編集しました。指定の通りの並び順で
|
2
|
-
|
2
|
+
|
3
|
-
|
3
|
+
リンクをクリックすることでグーグルに飛ぶようになっています。
|
4
4
|
|
5
5
|
```HTML
|
6
6
|
|
7
|
+
<!DOCTYPE html>
|
8
|
+
|
9
|
+
<html lang="ja">
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
<head>
|
14
|
+
|
15
|
+
<meta charset="UTF-8">
|
16
|
+
|
17
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
18
|
+
|
19
|
+
<title>Document</title>
|
20
|
+
|
21
|
+
<style>
|
22
|
+
|
23
|
+
.glitch {
|
24
|
+
|
25
|
+
position: relative;
|
26
|
+
|
27
|
+
width: 100%;
|
28
|
+
|
29
|
+
height: 70vh;
|
30
|
+
|
31
|
+
}
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
.glitch:before {
|
36
|
+
|
37
|
+
content: '';
|
38
|
+
|
39
|
+
position: absolute;
|
40
|
+
|
41
|
+
top: 0;
|
42
|
+
|
43
|
+
left: 0;
|
44
|
+
|
45
|
+
width: 100%;
|
46
|
+
|
47
|
+
height: 100%;
|
48
|
+
|
49
|
+
opacity: .5;
|
50
|
+
|
51
|
+
mix-blend-mode: hard-light;
|
52
|
+
|
53
|
+
animation: glitch2 2s linear infinite;
|
54
|
+
|
55
|
+
}
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
.glitch:hover:before {
|
60
|
+
|
61
|
+
animation: glitch1 1s linear infinite;
|
62
|
+
|
63
|
+
}
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
@keyframes glitch1 {
|
68
|
+
|
69
|
+
0% {
|
70
|
+
|
71
|
+
background-position: 0 0;
|
72
|
+
|
73
|
+
filter: hue-rotate(0deg);
|
74
|
+
|
75
|
+
}
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
10% {
|
80
|
+
|
81
|
+
background-position: 5px 0;
|
82
|
+
|
83
|
+
}
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
20% {
|
88
|
+
|
89
|
+
background-position: -5px 0;
|
90
|
+
|
91
|
+
}
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
30% {
|
96
|
+
|
97
|
+
background-position: 15px 0;
|
98
|
+
|
99
|
+
}
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
40% {
|
104
|
+
|
105
|
+
background-position: -5px 0;
|
106
|
+
|
107
|
+
}
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
50% {
|
112
|
+
|
113
|
+
background-position: -25px 0;
|
114
|
+
|
115
|
+
}
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
60% {
|
120
|
+
|
121
|
+
background-position: -50px 0;
|
122
|
+
|
123
|
+
}
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
70% {
|
128
|
+
|
129
|
+
background-position: 0 -20px;
|
130
|
+
|
131
|
+
}
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
80% {
|
136
|
+
|
137
|
+
background-position: -60px -20px;
|
138
|
+
|
139
|
+
}
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
81% {
|
144
|
+
|
145
|
+
background-position: 0 0;
|
146
|
+
|
147
|
+
}
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
100% {
|
152
|
+
|
153
|
+
background-position: 0 0;
|
154
|
+
|
155
|
+
filter: hue-rotate(360deg);
|
156
|
+
|
157
|
+
}
|
158
|
+
|
159
|
+
}
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
@keyframes glitch2 {
|
164
|
+
|
165
|
+
0% {
|
166
|
+
|
167
|
+
background-position: 0 0;
|
168
|
+
|
169
|
+
filter: hue-rotate(0deg);
|
170
|
+
|
171
|
+
}
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
10% {
|
176
|
+
|
177
|
+
background-position: 15px 0;
|
178
|
+
|
179
|
+
}
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
15% {
|
184
|
+
|
185
|
+
background-position: -15px 0;
|
186
|
+
|
187
|
+
}
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
20% {
|
192
|
+
|
193
|
+
filter: hue-rotate(360deg);
|
194
|
+
|
195
|
+
}
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
25% {
|
200
|
+
|
201
|
+
background-position: 0 0;
|
202
|
+
|
203
|
+
filter: hue-rotate(0deg);
|
204
|
+
|
205
|
+
}
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
100% {
|
210
|
+
|
211
|
+
background-position: 0 0;
|
212
|
+
|
213
|
+
filter: hue-rotate(0deg);
|
214
|
+
|
215
|
+
}
|
216
|
+
|
217
|
+
}
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
.toptext {
|
222
|
+
|
223
|
+
color: black;
|
224
|
+
|
225
|
+
width: 30%;
|
226
|
+
|
227
|
+
max-width: 220px;
|
228
|
+
|
229
|
+
position: relative;
|
230
|
+
|
231
|
+
margin: 0 auto;
|
232
|
+
|
233
|
+
padding: 0;
|
234
|
+
|
235
|
+
}
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
.toptext b {
|
240
|
+
|
241
|
+
display: inline-block;
|
242
|
+
|
243
|
+
color: white;
|
244
|
+
|
245
|
+
background: #000;
|
246
|
+
|
247
|
+
padding: 5px;
|
248
|
+
|
249
|
+
margin-top: 7px;
|
250
|
+
|
251
|
+
letter-spacing: 0.3em;
|
252
|
+
|
253
|
+
}
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
.toptext a {
|
258
|
+
|
259
|
+
border: 2px solid #fff;
|
260
|
+
|
261
|
+
text-align: center;
|
262
|
+
|
263
|
+
display: inline-block;
|
264
|
+
|
265
|
+
margin-top: 15px;
|
266
|
+
|
267
|
+
}
|
268
|
+
|
269
|
+
</style>
|
270
|
+
|
271
|
+
</head>
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
<body>
|
276
|
+
|
7
|
-
<p class="toptext">見出しテキスト<b>サブテキスト</b><a h
|
277
|
+
<p class="toptext">見出しテキスト<b>サブテキスト</b><a href="https://www.google.com/">リンクボタン</a></p>
|
278
|
+
|
279
|
+
</body>
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
</html>
|
8
284
|
|
9
285
|
```
|
10
|
-
|
11
|
-
```css
|
12
|
-
|
13
|
-
.toptext a {
|
14
|
-
|
15
|
-
display: inline-block;
|
16
|
-
|
17
|
-
opacity: 0;
|
18
|
-
|
19
|
-
padding: 5px;
|
20
|
-
|
21
|
-
margin-top: 7px;
|
22
|
-
|
23
|
-
letter-spacing: 0.3em;
|
24
|
-
|
25
|
-
position: absolute;
|
26
|
-
|
27
|
-
bottom: 0;
|
28
|
-
|
29
|
-
left: 0;
|
30
|
-
|
31
|
-
}
|
32
|
-
|
33
|
-
```
|