質問編集履歴

2

htmlとcss追加しました

2020/05/03 13:17

投稿

hohosyuku
hohosyuku

スコア14

test CHANGED
File without changes
test CHANGED
@@ -12,6 +12,8 @@
12
12
 
13
13
 
14
14
 
15
+ ```ここに言語を入力
16
+
15
17
  $(document).ready(function() {
16
18
 
17
19
  //ハッシュリンクのアンカータグをクリックするとマッチするidを持つ要素にスクロールする
@@ -52,6 +54,8 @@
52
54
 
53
55
  })(jQuery);
54
56
 
57
+ ```
58
+
55
59
 
56
60
 
57
61
 
@@ -80,6 +84,8 @@
80
84
 
81
85
 
82
86
 
87
+ ```ここに言語を入力
88
+
83
89
  <div id="wrapper">
84
90
 
85
91
     <a id="top"></a>
@@ -138,12 +144,16 @@
138
144
 
139
145
 
140
146
 
147
+ ```
148
+
141
149
 
142
150
 
143
151
  css↓
144
152
 
145
153
 
146
154
 
155
+ ```ここに言語を入力
156
+
147
157
  body {
148
158
 
149
159
  }
@@ -419,3 +429,5 @@
419
429
  visibility: visible;
420
430
 
421
431
  opacity: 1; }
432
+
433
+ ```

1

htmlとcss追加しました

2020/05/03 13:17

投稿

hohosyuku
hohosyuku

スコア14

test CHANGED
File without changes
test CHANGED
@@ -65,3 +65,357 @@
65
65
 
66
66
 
67
67
  どなたか、宜しくお願い致します。
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+ ☆追記です
78
+
79
+ なんか、かちゃかちゃになっていてすみません!
80
+
81
+
82
+
83
+ <div id="wrapper">
84
+
85
+    <a id="top"></a>
86
+
87
+ <div class="menu-sp">
88
+
89
+ <div id="header">
90
+
91
+ <a href="../index.html"><h1>ooooo</h1></a>
92
+
93
+
94
+
95
+ <div id="nav-toggle">
96
+
97
+ <div>
98
+
99
+ <span></span>
100
+
101
+ <span></span>
102
+
103
+ <span></span>
104
+
105
+ </div>
106
+
107
+ </div>
108
+
109
+
110
+
111
+ <div id="gloval-nav">
112
+
113
+ <nav>
114
+
115
+ <ul>
116
+
117
+ <li class="mgB"><a href="#">#</a></li>
118
+
119
+ <li class="mgB"><a onClick="#" class="button">#</a></li>
120
+
121
+ <li><a href="#">TOP</a></li>
122
+
123
+ <li><a href="#aaaa">aaaa</a></li>
124
+
125
+ <li><a href="#bbbb">bbbb</a></li>
126
+
127
+ <li><a href="#cccc">cccc</a></li>
128
+
129
+ <li><a href="#dddd">dddd</a></li>
130
+
131
+ </ul>
132
+
133
+ </nav>
134
+
135
+ </div>
136
+
137
+ </div>
138
+
139
+
140
+
141
+
142
+
143
+ css↓
144
+
145
+
146
+
147
+ body {
148
+
149
+ }
150
+
151
+
152
+
153
+
154
+
155
+ #nav-toggle {
156
+
157
+ position: fixed;
158
+
159
+ top: 25px;
160
+
161
+ right: 25px;
162
+
163
+ height: 32px;
164
+
165
+ cursor: pointer; }
166
+
167
+
168
+
169
+ #nav-toggle > div {
170
+
171
+ position: relative;
172
+
173
+ width: 36px; }
174
+
175
+
176
+
177
+ #nav-toggle span {
178
+
179
+ width: 100%;
180
+
181
+ height: 1px;
182
+
183
+ left: 0;
184
+
185
+ display: block;
186
+
187
+ background: #333;
188
+
189
+ position: absolute;
190
+
191
+ transition: transform .6s ease-in-out, top .5s ease; }
192
+
193
+
194
+
195
+ #nav-toggle span:nth-child(1) {
196
+
197
+ top: 0; }
198
+
199
+ #nav-toggle span:nth-child(2) {
200
+
201
+ top: 14px; }
202
+
203
+ #nav-toggle span:nth-child(3) {
204
+
205
+ top: 28px; }
206
+
207
+ #nav-toggle:hover span:nth-child(1) {
208
+
209
+ top: 4px; }
210
+
211
+ #nav-toggle:hover span:nth-child(3) {
212
+
213
+ top: 23px; }
214
+
215
+
216
+
217
+ .open #nav-toggle span {
218
+
219
+ background: #fff; }
220
+
221
+ .open #nav-toggle span:nth-child(1) {
222
+
223
+ top: 15px;
224
+
225
+ transform: rotate(45deg); }
226
+
227
+ .open #nav-toggle span:nth-child(2) {
228
+
229
+ top: 15px;
230
+
231
+ width: 0;
232
+
233
+ left: 50%; }
234
+
235
+ .open #nav-toggle span:nth-child(3) {
236
+
237
+ top: 15px;
238
+
239
+ transform: rotate(-45deg); }
240
+
241
+
242
+
243
+ /* z-index */
244
+
245
+ #nav-toggle {
246
+
247
+ z-index: 1000; }
248
+
249
+
250
+
251
+ #container {
252
+
253
+ z-index: 900; }
254
+
255
+
256
+
257
+ #gloval-nav {
258
+
259
+ background: #000;
260
+
261
+ color: #fff;
262
+
263
+ position: fixed;
264
+
265
+ top: 0;
266
+
267
+ left: 0;
268
+
269
+ right: 0;
270
+
271
+ bottom: 0;
272
+
273
+ z-index: 990;
274
+
275
+ text-align: center;
276
+
277
+ display: flex;
278
+
279
+ visibility: hidden;
280
+
281
+ flex-direction: column;
282
+
283
+ justify-content: center;
284
+
285
+ align-items: center;
286
+
287
+ font-size: 15px;
288
+
289
+ opacity: 0;
290
+
291
+ transition: opacity .6s ease, visibility .6s ease; }
292
+
293
+
294
+
295
+ #gloval-nav a {
296
+
297
+ display: block;
298
+
299
+ color: #fff;
300
+
301
+ text-decoration: none;
302
+
303
+ padding: 10px 0;
304
+
305
+ transition: color .6s ease; }
306
+
307
+
308
+
309
+ #gloval-nav a:hover {
310
+
311
+ color: #666; }
312
+
313
+
314
+
315
+ #gloval-nav ul {
316
+
317
+ list-style: none; }
318
+
319
+
320
+
321
+ #gloval-nav ul li {
322
+
323
+ opacity: 0;
324
+
325
+ transform: translateX(200px);
326
+
327
+ transition: transform .6s ease, opacity .2s ease; }
328
+
329
+ #gloval-nav ul li:nth-child(2) {
330
+
331
+ transition-delay: .15s; }
332
+
333
+ #gloval-nav ul li:nth-child(3) {
334
+
335
+ transition-delay: .3s; }
336
+
337
+ #gloval-nav ul li:nth-child(4) {
338
+
339
+ transition-delay: .45s; }
340
+
341
+ #gloval-nav ul li:nth-child(5) {
342
+
343
+ transition-delay: .6s; }
344
+
345
+ #gloval-nav ul li:nth-child(6) {
346
+
347
+ transition-delay: .75s; }
348
+
349
+ #gloval-nav ul li:nth-child(7) {
350
+
351
+ transition-delay: .9s; }
352
+
353
+
354
+
355
+ /* open */
356
+
357
+ .open {
358
+
359
+ overflow: hidden; }
360
+
361
+ .open #gloval-nav {
362
+
363
+ visibility: visible;
364
+
365
+ opacity: 1; }
366
+
367
+ .open #gloval-nav li {
368
+
369
+ opacity: 1;
370
+
371
+ transform: translateX(0);
372
+
373
+ transition: transform 1s ease, opacity .9s ease; }
374
+
375
+
376
+
377
+ #gloval-nav {
378
+
379
+ background: #000;
380
+
381
+ color: #fff;
382
+
383
+ position: fixed;
384
+
385
+ top: 0;
386
+
387
+ left: 0;
388
+
389
+ right: 0;
390
+
391
+ bottom: 0;
392
+
393
+ z-index: 990;
394
+
395
+ text-align: center;
396
+
397
+ display: flex;
398
+
399
+ visibility: hidden;
400
+
401
+ flex-direction: column;
402
+
403
+ justify-content: center;
404
+
405
+ align-items: center;
406
+
407
+ font-size: 18px;
408
+
409
+ line-height: 1.8em;
410
+
411
+ opacity: 0;
412
+
413
+ transition: opacity .6s ease, visibility .6s ease; }
414
+
415
+
416
+
417
+ .open #gloval-nav {
418
+
419
+ visibility: visible;
420
+
421
+ opacity: 1; }