質問編集履歴

1

追記依頼が来たので、該当HTMLとCSSを追記

2017/12/17 15:25

投稿

misato_3310
misato_3310

スコア14

test CHANGED
File without changes
test CHANGED
@@ -16,10 +16,708 @@
16
16
 
17
17
  そのせいで読み込み時のwindowの高さと実際に表示されているwindowの高さにずれが生じ、問題が起こっているのだと思われます。
18
18
 
19
+ ###該当のHTML
20
+
21
+ ```ここに言語を入力
22
+
23
+ <!DOCTYPE HTML>
24
+
25
+
26
+
27
+ <html>
28
+
29
+ <head>
30
+
31
+
32
+
33
+ <meta charset="UTF-8">
34
+
35
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
36
+
37
+ <meta name="format-detection" content="telephone=no"/>
38
+
39
+ <meta name="description" content="●●,●●">
40
+
41
+ <meta name="keywords" content="●●,●●">
42
+
43
+
44
+
45
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
46
+
47
+ <script type="text/javascript" src="js/animation.js"></script>
48
+
49
+
50
+
51
+ <link rel="stylesheet" type="text/css" href="css/animate.css" />
52
+
53
+ <link rel="stylesheet" href="css/style.css" />
54
+
55
+
56
+
57
+ </head>
58
+
59
+
60
+
61
+ <body>
62
+
63
+ <div id="wrapper">
64
+
65
+
66
+
67
+ <section id="message" class="animated" data-section-name="message">
68
+
69
+ <div class="header">
70
+
71
+ <img class="small" src="images/index/main_img.jpg" />
72
+
73
+ <h1>
74
+
75
+ <img class="head_logo01 animated" src="images/common/logo_mark.png" alt="" />
76
+
77
+ <img class="logo03 animated" src="images/common/logo_before.png" alt="" />
78
+
79
+ <img class="logo02 animated" src="images/common/logo_white.png" alt="" />
80
+
81
+ </h1>
82
+
83
+ </div>
84
+
85
+
86
+
87
+ <div class="content">
88
+
89
+
90
+
91
+ <div class="block_container clearfix">
92
+
93
+ <div class="block">
94
+
95
+ <p>ダミーテキスト</p>
96
+
97
+ <p>ダミーテキスト</p>
98
+
99
+ </div>
100
+
101
+ </div>
102
+
103
+
104
+
105
+ <div class="block_container clearfix">
106
+
107
+ <div class="block">
108
+
109
+ <p>ダミーテキスト</p>
110
+
111
+ <p>ダミーテキスト</p>
112
+
113
+ </div>
114
+
115
+ </div>
116
+
117
+
118
+
119
+ <div class="block_container clearfix">
120
+
121
+ <div class="block">
122
+
123
+ <p>ダミーテキスト</p>
124
+
125
+ <p>ダミーテキスト</p>
126
+
127
+ </div>
128
+
129
+ </div>
130
+
131
+
132
+
133
+ </div>
134
+
135
+ </section> <!-- /#message -->
136
+
137
+
138
+
139
+ <section id="works" class="animated" data-section-name="works">
140
+
141
+ <div class="title">
142
+
143
+ <img class="logo01 animated" src="images/common/logo_mark.png" alt="" />
144
+
145
+ <img class="logo02 animated" src="images/common/logo_black.png" alt="" />
146
+
147
+ <h2>ダミーテキスト</h2>
148
+
149
+ </div>
150
+
151
+ <div class="content">
152
+
153
+ <p>ダミーテキスト</p>
154
+
155
+ <p>ダミーテキスト</p>
156
+
157
+ </div>
158
+
159
+ </section> <!-- /#works -->
160
+
161
+
162
+
163
+ </div> <!-- /#wrapper -->
164
+
165
+
166
+
167
+
168
+
169
+ <script type="text/javascript" src="js/jquery.scrollify.min.js"></script>
170
+
171
+ <script type="text/javascript" src="js/jquery.inview.js"></script>
172
+
173
+ <script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
174
+
175
+ <script type="text/javascript" src="js/scroll.js"></script>
176
+
177
+
178
+
179
+ </body>
180
+
181
+ </html>
182
+
183
+ ```
184
+
185
+
186
+
187
+ ###該当のCSS
188
+
189
+ style.css
190
+
191
+ ```ここに言語を入力
192
+
193
+ @charset "utf-8";
194
+
195
+
196
+
197
+ /* -------------------------------
198
+
199
+ common
200
+
201
+ ------------------------------- */
202
+
203
+ body, p {
204
+
205
+ margin: 0;
206
+
207
+ padding: 0;
208
+
209
+ font-weight: normal;
210
+
211
+ }
212
+
213
+
214
+
215
+ img {
216
+
217
+ border:0;
218
+
219
+ vertical-align: top;
220
+
221
+ }
222
+
223
+
224
+
225
+ body {
226
+
227
+ width: 100%;
228
+
229
+ font-size: 0.9rem;
230
+
231
+ font-family: "メイリオ",Meiryo,Osaka,"ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","MS Pゴシック","MS PGothic",sans-serif;
232
+
233
+ color: #333;
234
+
235
+ line-height: 1.5;
236
+
237
+ -webkit-text-size-adjust: none;
238
+
239
+ background-color: #000;
240
+
241
+ letter-spacing: 0.3em;
242
+
243
+ }
244
+
245
+
246
+
247
+ a{
248
+
249
+ outline: none;
250
+
251
+ text-decoration: none;
252
+
253
+ }
254
+
255
+
256
+
257
+ a:hover {
258
+
259
+ text-decoration: none;
260
+
261
+ }
262
+
263
+
264
+
265
+ #wrapper {
266
+
267
+ overflow: hidden;
268
+
269
+ max-width: 1080px;
270
+
271
+ margin: 0 auto;
272
+
273
+ }
274
+
275
+
276
+
277
+ h1 {
278
+
279
+ margin: 0;
280
+
281
+ }
282
+
283
+
284
+
285
+ h2 {
286
+
287
+ font-size: 150%;
288
+
289
+ font-weight: normal;
290
+
291
+ margin: 0;
292
+
293
+ }
294
+
295
+
296
+
297
+ h3 {
298
+
299
+ font-weight: normal;
300
+
301
+ margin: 0 0 3%;
302
+
303
+ font-size: 100%;
304
+
305
+ }
306
+
307
+
308
+
309
+ h4 {
310
+
311
+ font-weight: normal;
312
+
313
+ margin: 0;
314
+
315
+ font-family: "Times New Roman";
316
+
317
+ }
318
+
319
+
320
+
321
+ /* --------------------------------
322
+
323
+ clearfix
324
+
325
+ * ----------------------------- */
326
+
327
+ .clearfix:after {
328
+
329
+ content: "";
330
+
331
+ display: block;
332
+
333
+ height: 0;
334
+
335
+ clear: both;
336
+
337
+ }
338
+
339
+
340
+
341
+ .clearfix{
342
+
343
+ display: block;
344
+
345
+ *zoom: 1;
346
+
347
+ }
348
+
349
+
350
+
351
+ /* -------------------------------
352
+
353
+ section
354
+
355
+ ------------------------------- */
356
+
357
+ section {
358
+
359
+ background-color: #fff;
360
+
361
+ animation-duration: .3s;
362
+
363
+ -webkit-animation-duration: .3s;
364
+
365
+ height: 100%;
366
+
367
+ }
368
+
369
+
370
+
371
+ .content {
372
+
373
+ width: 60%;
374
+
375
+ margin: 0 auto;
376
+
377
+ }
378
+
379
+
380
+
381
+ @media screen and (max-width: 640px) {
382
+
383
+ .content {
384
+
385
+ width: 94%;
386
+
387
+ padding: 3%;
388
+
389
+ }
390
+
391
+ }
392
+
393
+
394
+
395
+
396
+
397
+ .title {
398
+
399
+ text-align: center;
400
+
401
+ padding: 4% 0;
402
+
403
+ }
404
+
405
+
406
+
407
+ .title img.logo01 {
408
+
409
+ max-width: 17%;
410
+
411
+ width: auto;
412
+
413
+ height: auto;
414
+
415
+ margin: 0 auto;
416
+
417
+ display: block;
418
+
419
+ padding-right: 2.3%;
420
+
421
+ }
422
+
423
+
424
+
425
+ .title img.logo02 {
426
+
427
+ max-width: 32%;
428
+
429
+ width: auto;
430
+
431
+ height: auto;
432
+
433
+ margin: 0 auto 4%;
434
+
435
+ display: block;
436
+
437
+ animation-duration: 3s;
438
+
439
+ -webkit-animation-duration: 3s;
440
+
441
+ animation-delay: .5s;
442
+
443
+ -webkit-animation-delay: .5s;
444
+
445
+ }
446
+
447
+
448
+
449
+ @media screen and (min-width: 1000px) {
450
+
451
+ .title img.logo01 {
452
+
453
+ max-width: 13%;
454
+
455
+ }
456
+
457
+
458
+
459
+ .title img.logo02 {
460
+
461
+ max-width: 25%;
462
+
463
+ }
464
+
465
+ }
466
+
467
+
468
+
469
+ /* -------------------------------
470
+
471
+ message
472
+
473
+ -------------------------------- */
474
+
475
+ #message {
476
+
477
+ background-color: #333;
478
+
479
+ font-family: 'Sawarabi Mincho', serif;
480
+
481
+ }
482
+
483
+
484
+
485
+ .header{
486
+
487
+ position: relative;
488
+
489
+ width: 100%;
490
+
491
+ margin-bottom: 4%;
492
+
493
+ }
494
+
495
+
496
+
497
+ .header img {
498
+
499
+ width: 100%;
500
+
501
+ }
502
+
503
+
504
+
505
+ .header img.head_logo01 {
506
+
507
+ position: absolute;
508
+
509
+ max-width: 18%;
510
+
511
+ width: auto;
512
+
513
+ height: auto;
514
+
515
+ left: 46%;
516
+
517
+ right: 0;
518
+
519
+ top: 25%;
520
+
521
+ margin: auto;
522
+
523
+ animation-duration: 1.2s;
524
+
525
+ -webkit-animation-duration: 1.2s;
526
+
527
+ animation-delay: 1.5s;
528
+
529
+ -webkit-animation-delay: 1.5s;
530
+
531
+ }
532
+
533
+
534
+
535
+ .header img.logo02 {
536
+
537
+ position: absolute;
538
+
539
+ max-width: 35%;
540
+
541
+ width: auto;
542
+
543
+ height: auto;
544
+
545
+ left: 49%;
546
+
547
+ right: 0;
548
+
549
+ top: 40.85%;
550
+
551
+ margin: auto;
552
+
553
+ animation-duration: 3s;
554
+
555
+ -webkit-animation-duration: 3s;
556
+
557
+ animation-delay: 2.7s;
558
+
559
+ -webkit-animation-delay: 2.7s;
560
+
561
+ }
562
+
563
+
564
+
565
+ .header img.logo03 {
566
+
567
+ position: absolute;
568
+
569
+ max-width: 68%;
570
+
571
+ width: auto;
572
+
573
+ height: auto;
574
+
575
+ left: 0;
576
+
577
+ right: 18.15%;
578
+
579
+ top: 42.1%;
580
+
581
+ margin: auto;
582
+
583
+ animation-duration: 2s;
584
+
585
+ -webkit-animation-duration: 2s;
586
+
587
+ }
588
+
589
+
590
+
591
+
592
+
593
+ @media screen and (min-width: 1000px) {
594
+
595
+ .header {
596
+
597
+ height: 600px;
598
+
599
+ width: 100%;
600
+
601
+ overflow: hidden;
602
+
603
+ position: relative;
604
+
605
+ }
606
+
607
+
608
+
609
+ .header img.small {
610
+
611
+ position: absolute;
612
+
613
+ left: 0;
614
+
615
+ bottom: -15%;
616
+
617
+ right: 0;
618
+
619
+ width: 100%;
620
+
621
+ height: auto;
622
+
623
+ }
624
+
625
+
626
+
627
+ .header img.head_logo01 {
628
+
629
+ top: 6%;
630
+
631
+ right: 14%;
632
+
633
+ max-width: 13%;
634
+
635
+ }
636
+
637
+
638
+
639
+ .header img.logo02 {
640
+
641
+ top: 28%;
642
+
643
+ left: 35%;
644
+
645
+ max-width: 25%;
646
+
647
+ }
648
+
649
+
650
+
651
+ .header img.logo03 {
652
+
653
+ max-width: 48%;
654
+
655
+ right: 12.5%;
656
+
657
+ top: 29.5%;
658
+
659
+ }
660
+
661
+ }
662
+
663
+
664
+
665
+ #message .block {
666
+
667
+ padding: 4%;
668
+
669
+ margin-bottom: 4%;
670
+
671
+ text-align: center;
672
+
673
+ }
674
+
675
+
676
+
677
+ #message .block p {
678
+
679
+ padding: 1%;
680
+
681
+ color: #fff;
682
+
683
+ }
684
+
685
+
686
+
687
+ /* -------------------------------
688
+
689
+ works
690
+
691
+ -------------------------------- */
692
+
693
+ #works .content p {
694
+
695
+ text-align: center;
696
+
697
+ padding: 1.5% 0;
698
+
699
+ }
700
+
701
+
702
+
703
+ #works .content p:first-of-type {
704
+
705
+ padding: 0 0 3%;
706
+
707
+ }
708
+
709
+
710
+
711
+ ```
712
+
713
+
714
+
19
715
 
20
716
 
21
717
  ###該当のjs
22
718
 
719
+ scroll.js
720
+
23
721
  ```ここに言語を入力
24
722
 
25
723
  var option = {