質問編集履歴
3
変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,6 +22,10 @@
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
+
アドバイスを頂けると幸いです。
|
26
|
+
|
27
|
+
|
28
|
+
|
25
29
|
[html]
|
26
30
|
|
27
31
|
```ここに言語を入力
|
2
追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,4 +14,758 @@
|
|
14
14
|
|
15
15
|
|
16
16
|
|
17
|
-
|
17
|
+
1ページに背景画像1枚としてページ分スクロールさせたいです。
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
参考サイトをみて以下のように作りましたが、スムースに動きませんでした。
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
[html]
|
26
|
+
|
27
|
+
```ここに言語を入力
|
28
|
+
|
29
|
+
<!DOCTYPE HTML>
|
30
|
+
|
31
|
+
<html class="fsvs">
|
32
|
+
|
33
|
+
<head>
|
34
|
+
|
35
|
+
<meta charset="UTF-8">
|
36
|
+
|
37
|
+
<meta name="viewport" content="width=device-width">
|
38
|
+
|
39
|
+
<link rel="stylesheet" type="text/css" href="css/top_style.css">
|
40
|
+
|
41
|
+
<link rel="stylesheet" type="text/css" href="css/flow_style.css">
|
42
|
+
|
43
|
+
<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
|
44
|
+
|
45
|
+
<script type="text/javascript" src="js/skrollr.js"></script>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
<title>TEST COMPANY</title>
|
52
|
+
|
53
|
+
</head>
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
<body>
|
58
|
+
|
59
|
+
<header>
|
60
|
+
|
61
|
+
<h1><a href="index.html"></a></h1>
|
62
|
+
|
63
|
+
</header>
|
64
|
+
|
65
|
+
<nav>
|
66
|
+
|
67
|
+
<div id="ham-menu">
|
68
|
+
|
69
|
+
<ul>
|
70
|
+
|
71
|
+
<li><a href="index.html" title="ホーム">ホーム</a></li>
|
72
|
+
|
73
|
+
<li><a href="#" title="コンセプト">コンセプト</a></li>
|
74
|
+
|
75
|
+
<li><a href="#" title="ギャラリー">ギャラリー</a></li>
|
76
|
+
|
77
|
+
<li><a href="#" title="制作の流れ">制作の流れ</a></li>
|
78
|
+
|
79
|
+
<li><a href="#" title="注文">注文</a></li>
|
80
|
+
|
81
|
+
<li><a href="#" title="会社概要">会社概要</a></li>
|
82
|
+
|
83
|
+
<li><a href="#" title="問い合わせ">問い合わせ</a></li>
|
84
|
+
|
85
|
+
</ul>
|
86
|
+
|
87
|
+
</div>
|
88
|
+
|
89
|
+
<div id="menu-background"></div>
|
90
|
+
|
91
|
+
</nav>
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
<div id="content1" data-0="top:0%;opacity:1;" data-3000="top:100%;opacity:0.3;" >
|
96
|
+
|
97
|
+
<!-- / .content1 --></div>
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
<div id="content2" data-3000="opacity:1;" data-6000="opacity:0;">
|
102
|
+
|
103
|
+
<!-- / .content2 --></div>
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
<div id="content3" data-6000="top:0%" data-9000="top:100%">
|
108
|
+
|
109
|
+
<!-- / .content3 --></div>
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
<div id="content4" data-6000="background-position:0px 0px;" data-12500="background-position:0px -500px;">
|
114
|
+
|
115
|
+
<!-- / #content4 .content4 --></div>
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
<p id="leftout" data-0="left:50%;" data-3000="left:-100%;">Left Out</p>
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
<div id="transform" data-1000="top:100%;transform:scale(0) rotate(0deg);opacity:1;" data-3000="top:50%;transform:scale(4) rotate(360deg);" data-6000="opacity:0;">
|
124
|
+
|
125
|
+
<p>Transform</p>
|
126
|
+
|
127
|
+
<!-- / #transform --></div>
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
<div class="box" data-9000="top:10%;left:30%;" data-11000="top:-50%">
|
132
|
+
|
133
|
+
<p>テキストテキストテキストテキストテキストテキスト </p>
|
134
|
+
|
135
|
+
<!-- / .box --></div>
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
<div class="easing">
|
140
|
+
|
141
|
+
<p data-6500="left:50%;top[cubic]:100%;" data-9000="top:0%;">cubic</p>
|
142
|
+
|
143
|
+
<p data-6500="left:30%;bottom[quadratic]:100%;" data-9000="bottom:0%;">quadratic</p>
|
144
|
+
|
145
|
+
<p data-6500="left:70%;bottom[swing]:100%;" data-9000="bottom:0%;">swing</p>
|
146
|
+
|
147
|
+
<!-- / .easing --></div>
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
<p class="end" data-10000="opacity:0;left:50%;top:50%;" data-11000="opacity:1">end</p>
|
152
|
+
|
153
|
+
</body>
|
154
|
+
|
155
|
+
</html>
|
156
|
+
|
157
|
+
```
|
158
|
+
|
159
|
+
[CSS top_style]
|
160
|
+
|
161
|
+
```ここに言語を入力
|
162
|
+
|
163
|
+
@charset "UTF-8";
|
164
|
+
|
165
|
+
/* CSS Document */
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
* {
|
170
|
+
|
171
|
+
margin:0 auto;
|
172
|
+
|
173
|
+
padding:0;
|
174
|
+
|
175
|
+
}
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
body {
|
180
|
+
|
181
|
+
width:100%;
|
182
|
+
|
183
|
+
color:#333;
|
184
|
+
|
185
|
+
font-size:14px;
|
186
|
+
|
187
|
+
}
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
header {
|
192
|
+
|
193
|
+
width:100%;
|
194
|
+
|
195
|
+
margin-top:20px;
|
196
|
+
|
197
|
+
margin-bottom:20px;
|
198
|
+
|
199
|
+
}
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
h1 {
|
204
|
+
|
205
|
+
display:block;
|
206
|
+
|
207
|
+
width:80px;
|
208
|
+
|
209
|
+
height:80px;
|
210
|
+
|
211
|
+
background-image:url("../img/icon.png");
|
212
|
+
|
213
|
+
background-repeat:no-repeat;
|
214
|
+
|
215
|
+
text-align:center;
|
216
|
+
|
217
|
+
}
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
h1 span {
|
222
|
+
|
223
|
+
display:none;
|
224
|
+
|
225
|
+
}
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
h1 a {
|
230
|
+
|
231
|
+
display:block;
|
232
|
+
|
233
|
+
width:100px;
|
234
|
+
|
235
|
+
height:100px;
|
236
|
+
|
237
|
+
}
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
.header_p1 {
|
242
|
+
|
243
|
+
padding-left:20px;
|
244
|
+
|
245
|
+
font-weight:bold;
|
246
|
+
|
247
|
+
padding-top:25px;
|
248
|
+
|
249
|
+
text-align:center;
|
250
|
+
|
251
|
+
}
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
a:link {
|
256
|
+
|
257
|
+
color:#333;
|
258
|
+
|
259
|
+
text-decoration:none
|
260
|
+
|
261
|
+
}
|
262
|
+
|
263
|
+
a:visited {
|
264
|
+
|
265
|
+
color:#333;
|
266
|
+
|
267
|
+
text-decoration:none
|
268
|
+
|
269
|
+
}
|
270
|
+
|
271
|
+
a:hover {
|
272
|
+
|
273
|
+
color:#333;
|
274
|
+
|
275
|
+
text-decoration:none
|
276
|
+
|
277
|
+
}
|
278
|
+
|
279
|
+
a:active {
|
280
|
+
|
281
|
+
color:#333;
|
282
|
+
|
283
|
+
text-decoration:none
|
284
|
+
|
285
|
+
}
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
a:hover {
|
290
|
+
|
291
|
+
opacity: 0.5;
|
292
|
+
|
293
|
+
}
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
ul {
|
298
|
+
|
299
|
+
list-style:none;
|
300
|
+
|
301
|
+
line-height:2.5em;
|
302
|
+
|
303
|
+
}
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
/*メニュー部分*/
|
308
|
+
|
309
|
+
#ham-menu {
|
310
|
+
|
311
|
+
background-color: #fff; /*メニュー背景色*/
|
312
|
+
|
313
|
+
box-sizing: border-box;
|
314
|
+
|
315
|
+
height: 100%;
|
316
|
+
|
317
|
+
padding: 10px 40px; /*メニュー内部上下左右余白*/
|
318
|
+
|
319
|
+
position: fixed;
|
320
|
+
|
321
|
+
right: -300px; /*メニュー横幅①と合わせる*/
|
322
|
+
|
323
|
+
top: 0;
|
324
|
+
|
325
|
+
transition: transform 0.3s linear 0s; /*0.3s は変化するのにかかる時間*/
|
326
|
+
|
327
|
+
width: 300px; /*メニュー横幅①*/
|
328
|
+
|
329
|
+
z-index: 1000;
|
330
|
+
|
331
|
+
}
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
/*メニューアイコン部分は疑似要素で*/
|
336
|
+
|
337
|
+
#ham-menu::before {
|
338
|
+
|
339
|
+
background-color: #fff; /*ボタン部分背景色*/
|
340
|
+
|
341
|
+
border-radius: 0 0 0 10px; /*左下角丸*/
|
342
|
+
|
343
|
+
color: #333; /*アイコン(フォント)色*/
|
344
|
+
|
345
|
+
content: "≡"; /*メニューアイコン*/
|
346
|
+
|
347
|
+
display: block;
|
348
|
+
|
349
|
+
font-size: 50px; /*アイコン(フォント)サイズ*/
|
350
|
+
|
351
|
+
height: 50px;
|
352
|
+
|
353
|
+
line-height: 50px; /*縦位置中央化*/
|
354
|
+
|
355
|
+
position: absolute;
|
356
|
+
|
357
|
+
right: 100%;
|
358
|
+
|
359
|
+
text-align: center;
|
360
|
+
|
361
|
+
top: 0;
|
362
|
+
|
363
|
+
width: 50px;
|
364
|
+
|
365
|
+
}
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
/*透過背景部分*/
|
370
|
+
|
371
|
+
#menu-background {
|
372
|
+
|
373
|
+
background-color: #333; /*黒背景部分背景色*/
|
374
|
+
|
375
|
+
display: block;
|
376
|
+
|
377
|
+
height: 100%;
|
378
|
+
|
379
|
+
opacity: 0;
|
380
|
+
|
381
|
+
position: fixed;
|
382
|
+
|
383
|
+
right: 0;
|
384
|
+
|
385
|
+
top: 0;
|
386
|
+
|
387
|
+
transition: all 0.3s linear 0s; /*0.3s は変化するのにかかる時間*/
|
388
|
+
|
389
|
+
width: 100%;
|
390
|
+
|
391
|
+
z-index: -1;
|
392
|
+
|
393
|
+
}
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
/*hover 時の処理*/
|
398
|
+
|
399
|
+
#ham-menu:hover {
|
400
|
+
|
401
|
+
transform: translate(-300px); /*メニュー横幅①と合わせる*/
|
402
|
+
|
403
|
+
}
|
404
|
+
|
405
|
+
|
406
|
+
|
407
|
+
#ham-menu:hover + #menu-background {
|
408
|
+
|
409
|
+
opacity: 0.5; /*黒背景部分透過度*/
|
410
|
+
|
411
|
+
z-index: 999;
|
412
|
+
|
413
|
+
}
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
img { max-width:100%; height:auto; vertical-align:bottom; }
|
420
|
+
|
421
|
+
|
422
|
+
|
423
|
+
.clearfix {
|
424
|
+
|
425
|
+
*zoom: 1;
|
426
|
+
|
427
|
+
}
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
.clearfix:after {
|
432
|
+
|
433
|
+
content: '';
|
434
|
+
|
435
|
+
display: table;
|
436
|
+
|
437
|
+
clear: both;
|
438
|
+
|
439
|
+
}
|
440
|
+
|
441
|
+
```
|
442
|
+
|
443
|
+
|
444
|
+
|
445
|
+
[CSS flow_style]
|
446
|
+
|
447
|
+
```ここに言語を入力
|
448
|
+
|
449
|
+
@charset "UTF-8";
|
450
|
+
|
451
|
+
/* CSS Document */
|
452
|
+
|
453
|
+
|
454
|
+
|
455
|
+
html, body {
|
456
|
+
|
457
|
+
width:100%;
|
458
|
+
|
459
|
+
height:100%;
|
460
|
+
|
461
|
+
padding:0;
|
462
|
+
|
463
|
+
margin:0;
|
464
|
+
|
465
|
+
overflow-x:hidden;
|
466
|
+
|
467
|
+
}
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
.skrollable {
|
472
|
+
|
473
|
+
/*
|
474
|
+
|
475
|
+
* First-level skrollables are positioned relative to window
|
476
|
+
|
477
|
+
*/
|
478
|
+
|
479
|
+
position:fixed;
|
480
|
+
|
481
|
+
|
482
|
+
|
483
|
+
/*
|
484
|
+
|
485
|
+
* Skrollables by default have a z-index of 100 in order to make it easy to position elements in front/back without changing each skrollable
|
486
|
+
|
487
|
+
*/
|
488
|
+
|
489
|
+
z-index:100;
|
490
|
+
|
491
|
+
|
492
|
+
|
493
|
+
/*
|
494
|
+
|
495
|
+
* Use with caution
|
496
|
+
|
497
|
+
*/
|
498
|
+
|
499
|
+
transition: all .3s;
|
500
|
+
|
501
|
+
/*-o-transition: all .3s;*/
|
502
|
+
|
503
|
+
-ms-transition: all .3s;
|
504
|
+
|
505
|
+
-moz-transition: all .3s;
|
506
|
+
|
507
|
+
-webkit-transition: all .3s;
|
508
|
+
|
509
|
+
}
|
510
|
+
|
511
|
+
|
512
|
+
|
513
|
+
.skrollable.notransition, .notransition .skrollable {
|
514
|
+
|
515
|
+
transition: none;
|
516
|
+
|
517
|
+
-o-transition: none;
|
518
|
+
|
519
|
+
-ms-transition: none;
|
520
|
+
|
521
|
+
-moz-transition: none;
|
522
|
+
|
523
|
+
-webkit-transition: none;
|
524
|
+
|
525
|
+
}
|
526
|
+
|
527
|
+
|
528
|
+
|
529
|
+
.skrollable.hidden {
|
530
|
+
|
531
|
+
display:none !important;
|
532
|
+
|
533
|
+
}
|
534
|
+
|
535
|
+
|
536
|
+
|
537
|
+
.skrollable .skrollable {
|
538
|
+
|
539
|
+
/*
|
540
|
+
|
541
|
+
* Second-level skrollables are positioned relative their parent skrollable
|
542
|
+
|
543
|
+
*/
|
544
|
+
|
545
|
+
position:absolute;
|
546
|
+
|
547
|
+
}
|
548
|
+
|
549
|
+
|
550
|
+
|
551
|
+
.skrollable .skrollable .skrollable {
|
552
|
+
|
553
|
+
/*
|
554
|
+
|
555
|
+
* Third-level (and below) skrollables are positioned static
|
556
|
+
|
557
|
+
*/
|
558
|
+
|
559
|
+
position:static;
|
560
|
+
|
561
|
+
}
|
562
|
+
|
563
|
+
html, body {
|
564
|
+
|
565
|
+
width:100%;
|
566
|
+
|
567
|
+
height:100%;
|
568
|
+
|
569
|
+
padding:0;
|
570
|
+
|
571
|
+
margin:0;
|
572
|
+
|
573
|
+
overflow-x:hidden;
|
574
|
+
|
575
|
+
font-size:14px;
|
576
|
+
|
577
|
+
}
|
578
|
+
|
579
|
+
.nav {
|
580
|
+
|
581
|
+
width:100%;
|
582
|
+
|
583
|
+
z-index:101;
|
584
|
+
|
585
|
+
position:fixed;
|
586
|
+
|
587
|
+
background:#000;
|
588
|
+
|
589
|
+
overflow:hidden;
|
590
|
+
|
591
|
+
height:50px;
|
592
|
+
|
593
|
+
color:#fff;
|
594
|
+
|
595
|
+
}
|
596
|
+
|
597
|
+
#interval {
|
598
|
+
|
599
|
+
text-align:right;
|
600
|
+
|
601
|
+
margin:0 10px 0 0;
|
602
|
+
|
603
|
+
}
|
604
|
+
|
605
|
+
.nav li {
|
606
|
+
|
607
|
+
float:left;
|
608
|
+
|
609
|
+
list-style:none;
|
610
|
+
|
611
|
+
margin: 0 10px 0 0;
|
612
|
+
|
613
|
+
}
|
614
|
+
|
615
|
+
.nav li a {
|
616
|
+
|
617
|
+
color:#FFFFFF;
|
618
|
+
|
619
|
+
}
|
620
|
+
|
621
|
+
#wrap {
|
622
|
+
|
623
|
+
position:relative;
|
624
|
+
|
625
|
+
}
|
626
|
+
|
627
|
+
#content1 , #content2 , #content3,#content4{
|
628
|
+
|
629
|
+
height:3000px;
|
630
|
+
|
631
|
+
width:100%;
|
632
|
+
|
633
|
+
position:fixed;
|
634
|
+
|
635
|
+
left:0;
|
636
|
+
|
637
|
+
top:0;
|
638
|
+
|
639
|
+
}
|
640
|
+
|
641
|
+
#content1 {
|
642
|
+
|
643
|
+
z-index:99;
|
644
|
+
|
645
|
+
background:url(img/01.jpg) no-repeat;
|
646
|
+
|
647
|
+
}
|
648
|
+
|
649
|
+
#content2 {
|
650
|
+
|
651
|
+
z-index:98;
|
652
|
+
|
653
|
+
background:url(img/02.jpg) no-repeat;
|
654
|
+
|
655
|
+
}
|
656
|
+
|
657
|
+
#content3 {
|
658
|
+
|
659
|
+
z-index:97;
|
660
|
+
|
661
|
+
background:url(img/03.jpg) no-repeat;
|
662
|
+
|
663
|
+
}
|
664
|
+
|
665
|
+
#content4 {
|
666
|
+
|
667
|
+
z-index:95;
|
668
|
+
|
669
|
+
background:url(img/04.jpg) no-repeat;
|
670
|
+
|
671
|
+
}
|
672
|
+
|
673
|
+
.box {
|
674
|
+
|
675
|
+
z-index:96;
|
676
|
+
|
677
|
+
width:500px;
|
678
|
+
|
679
|
+
}
|
680
|
+
|
681
|
+
#leftout {
|
682
|
+
|
683
|
+
margin-top:400px;
|
684
|
+
|
685
|
+
color:#fff;
|
686
|
+
|
687
|
+
font-size:30px;
|
688
|
+
|
689
|
+
}
|
690
|
+
|
691
|
+
#transform {
|
692
|
+
|
693
|
+
width:100%;
|
694
|
+
|
695
|
+
text-align:center;
|
696
|
+
|
697
|
+
}
|
698
|
+
|
699
|
+
#transform p {
|
700
|
+
|
701
|
+
color:#1641a3;
|
702
|
+
|
703
|
+
}
|
704
|
+
|
705
|
+
.easing p {
|
706
|
+
|
707
|
+
font-size:18px;
|
708
|
+
|
709
|
+
background:#39F;
|
710
|
+
|
711
|
+
color:#fff;
|
712
|
+
|
713
|
+
margin:0;
|
714
|
+
|
715
|
+
padding:10px 20px;
|
716
|
+
|
717
|
+
}
|
718
|
+
|
719
|
+
.end {
|
720
|
+
|
721
|
+
font-size:22px;
|
722
|
+
|
723
|
+
}
|
724
|
+
|
725
|
+
/* page-top */
|
726
|
+
|
727
|
+
#page-top {
|
728
|
+
|
729
|
+
z-index:100;
|
730
|
+
|
731
|
+
position: fixed;
|
732
|
+
|
733
|
+
bottom: 20px;
|
734
|
+
|
735
|
+
right: 20px;
|
736
|
+
|
737
|
+
font-size: 77%;
|
738
|
+
|
739
|
+
}
|
740
|
+
|
741
|
+
#page-top a {
|
742
|
+
|
743
|
+
background: #000;
|
744
|
+
|
745
|
+
text-decoration: none;
|
746
|
+
|
747
|
+
color: #fff;
|
748
|
+
|
749
|
+
padding: 20px;
|
750
|
+
|
751
|
+
text-align: center;
|
752
|
+
|
753
|
+
display: block;
|
754
|
+
|
755
|
+
border-radius: 5px;
|
756
|
+
|
757
|
+
-webkit-border-radius: 5px;
|
758
|
+
|
759
|
+
-moz-border-radius: 5px;
|
760
|
+
|
761
|
+
}
|
762
|
+
|
763
|
+
#page-top a:hover {
|
764
|
+
|
765
|
+
text-decoration: none;
|
766
|
+
|
767
|
+
background: #333;
|
768
|
+
|
769
|
+
}
|
770
|
+
|
771
|
+
```
|
1
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
上記のサイトのskrollrを使って縦にスクロールさせたいのですが、うまくいきません。
|
5
|
+
上記のサイトのskrollrを使ってスマホ用に縦にスクロールさせたいのですが、うまくいきません。
|
6
6
|
|
7
7
|
|
8
8
|
|