質問編集履歴
2
編集依頼への対応
title
CHANGED
File without changes
|
body
CHANGED
@@ -22,4 +22,110 @@
|
|
22
22
|
|
23
23
|
[スライドのみ抜粋したページ](http://m-sdct.sakura.ne.jp/slider-test.html)
|
24
24
|
|
25
|
-

|
25
|
+

|
26
|
+
|
27
|
+
```スライドのhtml&CSS
|
28
|
+
●HTMLーーーーーーーーーーーーーーーーー
|
29
|
+
|
30
|
+
<div id="mv">
|
31
|
+
<ul class="slider">
|
32
|
+
<li></li>
|
33
|
+
<li></li>
|
34
|
+
<li></li>
|
35
|
+
</ul>
|
36
|
+
|
37
|
+
●PCサイト用CSSーーーーーーーーーーーーー
|
38
|
+
|
39
|
+
#mv {
|
40
|
+
position: relative;
|
41
|
+
display: flex;
|
42
|
+
justify-content: center;
|
43
|
+
align-items: center;
|
44
|
+
width: 100%;
|
45
|
+
height: 100vh;
|
46
|
+
}
|
47
|
+
|
48
|
+
.slider {
|
49
|
+
position: absolute;
|
50
|
+
top: 0;
|
51
|
+
left: 0;
|
52
|
+
overflow: hidden;
|
53
|
+
width: 100%;
|
54
|
+
height: 100%;
|
55
|
+
z-index: 0;
|
56
|
+
|
57
|
+
}
|
58
|
+
|
59
|
+
.slider li {
|
60
|
+
background-size: cover;
|
61
|
+
background-repeat: no-repeat;
|
62
|
+
background-position: center;
|
63
|
+
width: 100%;
|
64
|
+
height: 100%;
|
65
|
+
position: absolute;
|
66
|
+
top: 0;
|
67
|
+
left: 0;
|
68
|
+
background-attachment: fixed;
|
69
|
+
animation-iteration-count: infinite;
|
70
|
+
-webkit-animation-iteration-count: infinite;
|
71
|
+
animation-duration: 24s;
|
72
|
+
-webkit-animation-duration: 24s;
|
73
|
+
}
|
74
|
+
.slider li:nth-child(1) {
|
75
|
+
background-image: url("../images/kv01.jpg");
|
76
|
+
animation-name: slider-zoomin;
|
77
|
+
-webkit-animation-name: slider-zoomin;
|
78
|
+
animation-delay: -3s;
|
79
|
+
-webkit-animation-delay: -3s;
|
80
|
+
}
|
81
|
+
.slider li:nth-child(2) {
|
82
|
+
background-image: url(../images/kv02.jpg);
|
83
|
+
animation-name: slider-zoomin;
|
84
|
+
-webkit-animation-name: slider-zoomin;
|
85
|
+
opacity: 0;
|
86
|
+
animation-delay: 5s;
|
87
|
+
-webkit-animation-delay: 5s;
|
88
|
+
}
|
89
|
+
.slider li:nth-child(3) {
|
90
|
+
background-image: url(../images/kv03.jpg);
|
91
|
+
animation-name: slider-zoomin;
|
92
|
+
-webkit-animation-name: slider-zoomin;
|
93
|
+
opacity: 0;
|
94
|
+
animation-delay: 13s;
|
95
|
+
-webkit-animation-delay: 13s;
|
96
|
+
}
|
97
|
+
|
98
|
+
@keyframes slider-zoomin {
|
99
|
+
0% {
|
100
|
+
opacity: 0;
|
101
|
+
transform: scale(1);
|
102
|
+
transform: -webkit-scale(1);
|
103
|
+
}
|
104
|
+
20.83% {
|
105
|
+
opacity: 1;
|
106
|
+
}
|
107
|
+
33.33% {
|
108
|
+
opacity: 1;
|
109
|
+
}
|
110
|
+
45.83% {
|
111
|
+
opacity: 0;
|
112
|
+
}
|
113
|
+
100% {
|
114
|
+
opacity: 0;
|
115
|
+
transform: scale(1.2);
|
116
|
+
transform: -webkit-scale(1.2);
|
117
|
+
}
|
118
|
+
}
|
119
|
+
|
120
|
+
●スマホ用CSSーーーーーーーーーーーーー
|
121
|
+
|
122
|
+
.slider li:nth-child(1) {
|
123
|
+
background-image: url("../images/sp-kv01.jpg");
|
124
|
+
}
|
125
|
+
.slider li:nth-child(2) {
|
126
|
+
background-image: url(../images/sp-kv02.jpg);
|
127
|
+
}
|
128
|
+
.slider li:nth-child(3) {
|
129
|
+
background-image: url(../images/sp-kv02.jpg);
|
130
|
+
}
|
131
|
+
```
|
1
写真を追加しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -18,7 +18,8 @@
|
|
18
18
|
|
19
19
|
##サイト
|
20
20
|
|
21
|
-
|
22
21
|
[元のサイト](http://m-sdct.sakura.ne.jp/index.html)
|
23
22
|
|
24
|
-
[スライドのみ抜粋したページ](http://m-sdct.sakura.ne.jp/slider-test.html)
|
23
|
+
[スライドのみ抜粋したページ](http://m-sdct.sakura.ne.jp/slider-test.html)
|
24
|
+
|
25
|
+

|