質問編集履歴

2

swiper.min.cssに記述されている position:relativeの部分を削除したところ 手のひらツールは出なくなりましたが、リンク(内部、外部共)については解決していません。

2020/08/01 06:09

投稿

cht
cht

スコア10

test CHANGED
File without changes
test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- 前回の質問に続き、サンプルコードを組み合わせたところ、スライドする際送り・戻りボタンが表示されるとスライダー下左半分にマウスポインタ―の「手のひル」が現れることと、内部及び外部リンクができない
5
+ 前回の質問に続き、ハンバーガーメニューとスライダーのサンプルコードを組み合わせたところ、ハンバーガーメニューについては問題なく開き外部へのリクもできます、外部へ画像リクや、フッーかトップペジへの内部リンクができません
6
6
 
7
7
 
8
8
 
@@ -12,8 +12,6 @@
12
12
 
13
13
  ```
14
14
 
15
- スライダー全体とスライダー下の左半分に手のひらツールが現れる
16
-
17
15
  内部及び外部リンクができない
18
16
 
19
17
  ```
@@ -238,23 +236,75 @@
238
236
 
239
237
  ```
240
238
 
241
- ```css
242
-
243
- @charset "utf-8";
244
-
245
-
246
-
247
- [class^="swiper-button-"], .swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet, .swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet::before {
248
-
249
- -webkit-transition: all .3s ease;
250
-
251
- transition: all .3s ease;
252
-
253
- }
254
-
255
-
256
-
257
- [class^="swiper-slide-shadow-"] {
239
+ ```css
240
+
241
+ * {
242
+
243
+ box-sizing: border-box;
244
+
245
+ }
246
+
247
+ *:before, *:after {
248
+
249
+ padding: 0;
250
+
251
+ margin: 0;
252
+
253
+ }
254
+
255
+
256
+
257
+ body {
258
+
259
+ font-family: Lato, Arial, "Hiragino Kaku Gothic Pro W3", Meiryo, sans-serif;
260
+
261
+ background-color: #333;
262
+
263
+ color: #efefef;
264
+
265
+ text-align: center;
266
+
267
+ margin: 0;
268
+
269
+ padding: 0;
270
+
271
+ }
272
+
273
+ body a, body a:visited {
274
+
275
+ color: #efefef;
276
+
277
+ text-decoration: none;
278
+
279
+ }
280
+
281
+ body a:hover {
282
+
283
+ color: #ccc;
284
+
285
+ }
286
+
287
+
288
+
289
+ .container {
290
+
291
+ position: relative;
292
+
293
+ }
294
+
295
+
296
+
297
+ .content {
298
+
299
+ margin: 0 auto;
300
+
301
+ padding: 5% 40px;
302
+
303
+ }
304
+
305
+
306
+
307
+ .hidden_menu, .hidden_menu ul {
258
308
 
259
309
  backface-visibility: hidden;
260
310
 
@@ -264,231 +314,337 @@
264
314
 
265
315
 
266
316
 
317
+ .hidden_menu ul li, .menu_underline, .header_bar::before {
318
+
319
+ transition: all 0.3s ease;
320
+
321
+ }
322
+
323
+
324
+
325
+ .humberger, .hidden_menu, .hidden_menu ul, .header_bar, .container {
326
+
327
+ transition: all 0.5s ease;
328
+
329
+ }
330
+
331
+
332
+
333
+ .hidden_menu ul li::before, .header_bar::before, .container::before {
334
+
335
+ content: '';
336
+
337
+ position: absolute;
338
+
339
+ top: 0;
340
+
341
+ left: 0;
342
+
343
+ width: 100%;
344
+
345
+ height: 100%;
346
+
347
+ }
348
+
349
+
350
+
351
+ #humberger_check {
352
+
353
+ width: 0;
354
+
355
+ height: 0;
356
+
357
+ opacity: 0;
358
+
359
+ visibility: hidden;
360
+
361
+ }
362
+
363
+ #humberger_check:checked + .humberger {
364
+
365
+ transform: translateY(160px);
366
+
367
+ }
368
+
369
+ #humberger_check:checked + .humberger span {
370
+
371
+ background-color: transparent;
372
+
373
+ }
374
+
375
+ #humberger_check:checked + .humberger span::before {
376
+
377
+ top: 2px;
378
+
379
+ transition: top 0.1s cubic-bezier(0.33333, 0, 0.66667, 0.33333) 0.15s, transform 0.13s cubic-bezier(0.215, 0.61, 0.355, 1) 0.22s;
380
+
381
+ -webkit-transform: translate3d(0, 10px, 0) rotate(45deg);
382
+
383
+ transform: translate3d(0, 10px, 0) rotate(45deg);
384
+
385
+ }
386
+
387
+ #humberger_check:checked + .humberger span::after {
388
+
389
+ top: 6px;
390
+
391
+ transition: top 0.2s cubic-bezier(0.33333, 0, 0.66667, 0.33333), transform 0.13s cubic-bezier(0.215, 0.61, 0.355, 1) 0.22s;
392
+
393
+ -webkit-transform: translate3d(0, 6px, 0) rotate(-45deg);
394
+
395
+ transform: translate3d(0, 6px, 0) rotate(-45deg);
396
+
397
+ }
398
+
399
+ #humberger_check:checked ~ .header_bar,
400
+
401
+ #humberger_check:checked ~ .container {
402
+
403
+ transform: translateY(160px);
404
+
405
+ }
406
+
407
+ #humberger_check:checked ~ .hidden_menu {
408
+
409
+ transform: translateY(0);
410
+
411
+ }
412
+
413
+ #humberger_check:checked ~ .hidden_menu ul {
414
+
415
+ opacity: 1;
416
+
417
+ transform: rotateX(0);
418
+
419
+ }
420
+
421
+
422
+
423
+ .humberger {
424
+
425
+ position: fixed;
426
+
427
+ top: 20px;
428
+
429
+ right: 5vw;
430
+
431
+ width: 40px;
432
+
433
+ height: 40px;
434
+
435
+ cursor: pointer;
436
+
437
+ z-index: 3;
438
+
439
+ }
440
+
441
+ .humberger span {
442
+
443
+ position: absolute;
444
+
445
+ top: 6px;
446
+
447
+ left: 50%;
448
+
449
+ width: 30px;
450
+
451
+ height: 4px;
452
+
453
+ margin: 0 auto auto -15px;
454
+
455
+ background-color: #fff;
456
+
457
+ transition: background-color .1s linear .13s;
458
+
459
+ }
460
+
461
+ .humberger span::before, .humberger span::after {
462
+
463
+ content: '';
464
+
465
+ position: absolute;
466
+
467
+ left: 0;
468
+
469
+ width: 100%;
470
+
471
+ height: 4px;
472
+
473
+ background-color: #fff;
474
+
475
+ }
476
+
477
+ .humberger span::before {
478
+
479
+ top: 12px;
480
+
481
+ transition: top 0.1s cubic-bezier(0.33333, 0.66667, 0.66667, 1) 0.2s, transform 0.13s cubic-bezier(0.55, 0.055, 0.675, 0.19);
482
+
483
+ }
484
+
267
- *, *:before, *:after {
485
+ .humberger span::after {
486
+
268
-
487
+ top: 24px;
488
+
489
+ transition: top 0.2s cubic-bezier(0.33333, 0.66667, 0.66667, 1) 0.2s, transform 0.13s cubic-bezier(0.55, 0.055, 0.675, 0.19);
490
+
491
+ }
492
+
493
+
494
+
495
+ .hidden_menu {
496
+
269
- box-sizing: border-box;
497
+ position: fixed;
498
+
499
+ top: 0;
500
+
501
+ left: 0;
502
+
503
+ width: 100%;
504
+
505
+ height: 160px;
506
+
507
+ -webkit-perspective: 1600px;
508
+
509
+ perspective: 1600px;
510
+
511
+ background-color: #222;
512
+
513
+ z-index: 3;
514
+
515
+ transform: translateY(-100%);
516
+
517
+ }
518
+
519
+ .hidden_menu ul {
520
+
521
+ list-style: none;
522
+
523
+ width: 100%;
524
+
525
+ height: 100%;
270
526
 
271
527
  margin: 0;
272
528
 
273
529
  padding: 0;
274
530
 
531
+ opacity: 0;
532
+
533
+ background-color: rgba(255, 255, 255, 0.08);
534
+
535
+ -webkit-transform-origin: center bottom;
536
+
537
+ transform-origin: center bottom;
538
+
539
+ transform: rotateX(90deg);
540
+
275
- }
541
+ }
276
-
277
-
278
-
542
+
279
- body {
543
+ .hidden_menu ul li {
280
-
544
+
281
- background-color: #888;
545
+ position: relative;
546
+
282
-
547
+ display: table;
548
+
549
+ width: 20%;
550
+
551
+ height: 100%;
552
+
283
- clear: both;
553
+ float: left;
554
+
284
-
555
+ font-size: 13px;
556
+
285
- }
557
+ }
286
-
287
-
288
-
558
+
559
+
560
+
289
- .swiper-container {
561
+ .container {
562
+
563
+ position: absolute;
564
+
565
+ top: 0;
566
+
567
+ left: 0;
290
568
 
291
569
  width: 100%;
292
570
 
293
- height: 34vw;
294
-
295
- -webkit-transition: opacity .6s ease, -webkit-transform .3s ease;
296
-
297
- transition: opacity .6s ease, -webkit-transform .3s ease;
298
-
299
- transition: opacity .6s ease, transform .3s ease;
300
-
301
- transition: opacity .6s ease, transform .3s ease, -webkit-transform .3s ease;
302
-
303
- }
304
-
305
- .swiper-container:hover .swiper-button-prev,
306
-
307
- .swiper-container:hover .swiper-button-next {
308
-
309
- -webkit-transform: translateX(0);
310
-
311
- transform: translateX(0);
312
-
313
- opacity: 1;
571
+ z-index: 1;
314
-
315
- visibility: visible;
572
+
316
-
317
- }
318
-
319
- .swiper-container.loading {
320
-
321
- opacity: 0;
322
-
323
- }
324
-
325
- .swiper-container.scale-out {
326
-
327
- -webkit-transform: scale(0.7);
328
-
329
- transform: scale(0.7);
330
-
331
- }
332
-
333
- .swiper-container.scale-in {
334
-
335
- -webkit-transform: scale(1);
573
+ background-size: cover;
336
-
574
+
337
- transform: scale(1);
575
+ background-attachment: fixed;
338
-
339
- }
340
-
341
-
342
-
343
- .swiper-slide {
344
576
 
345
577
  background-position: center;
346
578
 
347
- background-size: cover;
579
+ background-image:;
348
-
349
- -webkit-perspective: 1600px;
580
+
350
-
351
- perspective: 1600px;
352
-
353
- }
581
+ }
354
-
582
+
355
- .swiper-slide.swiper-slide-active {
583
+ .container::before {
356
-
584
+
357
- z-index: 2;
585
+ position: fixed;
586
+
358
-
587
+ background-color: rgba(0, 0, 0, 0);
588
+
359
- }
589
+ }
360
-
361
- .swiper-slide .entity-img {
590
+
362
-
363
- display: none;
591
+
364
-
365
- }
592
+
366
-
367
- .swiper-slide .content {
593
+ .content {
368
-
369
- position: absolute;
370
-
371
- top: 40%;
372
-
373
- left: 0;
374
-
375
- width: 50%;
376
-
377
- padding-left: 5%;
378
-
379
- color: #fff;
380
-
381
- -webkit-transform: translateZ(100px) translateX(100px);
382
-
383
- transform: translateZ(100px) translateX(100px);
384
-
385
- }
386
-
387
- .swiper-slide .content .title {
388
-
389
- font-size: 2.5em;
390
-
391
- font-weight: bold;
392
-
393
- margin-bottom: 30px;
394
-
395
- }
396
-
397
- .swiper-slide .content .caption {
398
-
399
- display: block;
400
-
401
- font-size: 12px;
402
-
403
- line-height: 1.4;
404
-
405
- }
406
-
407
-
408
-
409
- [class^="swiper-button-"] {
410
-
411
- width: 44px;
412
-
413
- opacity: 0;
414
-
415
- visibility: hidden;
416
-
417
- }
418
-
419
-
420
-
421
- .swiper-button-prev {
422
-
423
- -webkit-transform: translateX(50px);
424
-
425
- transform: translateX(50px);
426
-
427
- }
428
-
429
-
430
-
431
- .swiper-button-next {
432
-
433
- -webkit-transform: translateX(-50px);
434
-
435
- transform: translateX(-50px);
436
-
437
- }
438
-
439
-
440
-
441
- .swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet {
442
-
443
- margin: 0 9px;
444
594
 
445
595
  position: relative;
446
596
 
447
- width: 12px;
448
-
449
- height: 12px;
450
-
451
- background-color: #fff;
452
-
453
- opacity: .4;
454
-
455
- }
456
-
457
- .swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet::before {
458
-
459
- content: '';
460
-
461
- position: absolute;
462
-
463
- top: 50%;
464
-
465
- left: 50%;
466
-
467
- width: 18px;
468
-
469
- height: 18px;
470
-
471
- -webkit-transform: translate(-50%, -50%);
472
-
473
- transform: translate(-50%, -50%);
474
-
475
- border: 0px solid #fff;
476
-
477
- border-radius: 50%;
478
-
479
- }
480
-
481
- .swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet:hover, .swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet.swiper-pagination-bullet-active {
482
-
483
- opacity: 1;
484
-
485
- }
486
-
487
- .swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet.swiper-pagination-bullet-active::before {
488
-
489
- border-width: 1px;
490
-
491
- }
597
+ margin: 100px auto 4vw;
598
+
599
+ padding: 0 5vw;
600
+
601
+ height: 100vh;
602
+
603
+ }
604
+
605
+ .content h2 {
606
+
607
+ position: relative;
608
+
609
+ top: 30vh;
610
+
611
+ font-size: 38px;
612
+
613
+ }
614
+
615
+
616
+
617
+ @keyframes scaling {
618
+
619
+ 50% {
620
+
621
+ opacity: .28;
622
+
623
+ transform: scale(0.5);
624
+
625
+ }
626
+
627
+ 100% {
628
+
629
+ opacity: 0;
630
+
631
+ transform: scale(1.05);
632
+
633
+ }
634
+
635
+ }
636
+
637
+ @media (max-width: 680px) {
638
+
639
+ #humberger_check:checked + .humberger,
640
+
641
+ #humberger_check:checked ~ .header_bar,
642
+
643
+ #humberger_check:checked ~ .container {
644
+
645
+ transform: translateY(300px);
646
+
647
+ }
492
648
 
493
649
 
494
650
 
@@ -496,8 +652,6 @@
496
652
 
497
653
 
498
654
 
499
-
500
-
501
655
  ### 補足情報(FW/ツールのバージョンなど)
502
656
 
503
657
 

1

タイトルの追加

2020/08/01 06:09

投稿

cht
cht

スコア10

test CHANGED
@@ -1 +1 @@
1
- サンプルコードを組み合わせたところ手のひらツールと内部リンクができない
1
+ サンプルコードを組み合わせたところ手のひらツールが現れること、内部リンクができない
test CHANGED
File without changes