質問編集履歴
3
コードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,19 +2,33 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
htmlで指定した画像がaltで指定した文になってしまう
|
6
5
|
|
7
6
|
|
8
7
|
|
9
|
-
コード
|
10
8
|
|
11
9
|
|
10
|
+
|
11
|
+
コードは一つの画像についてのコードですが、実際はコレが四つあり%で指定した数値が少しずつずれて指定しています。
|
12
|
+
|
13
|
+
ローカルでは画像も表示されるのですがサーバーにアップして動きを確認すると画像が表示されません。
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
![イメージ説明](b95f8adced1779d3e418b1e654179328.png)
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
```
|
12
24
|
|
13
25
|
html
|
14
26
|
|
15
27
|
|
16
28
|
|
17
29
|
<img class="kamon1" src="img/KAMON_bg1.png" alt="背景を動き回る家紋">
|
30
|
+
|
31
|
+
|
18
32
|
|
19
33
|
-------------
|
20
34
|
|
@@ -84,12 +98,10 @@
|
|
84
98
|
|
85
99
|
animation-iteration-count:infinite;
|
86
100
|
|
101
|
+
|
102
|
+
|
87
103
|
}
|
88
104
|
|
89
|
-
|
105
|
+
コード
|
90
106
|
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
107
|
+
```
|
2
コードを短くした
test
CHANGED
File without changes
|
test
CHANGED
@@ -15,16 +15,6 @@
|
|
15
15
|
|
16
16
|
|
17
17
|
<img class="kamon1" src="img/KAMON_bg1.png" alt="背景を動き回る家紋">
|
18
|
-
|
19
|
-
<img class="kamon2" src="img/KAMON_bg2.png" alt="背景を動き回る家紋">
|
20
|
-
|
21
|
-
<img class="kamon3" src="img/KAMON_bg3.png" alt="背景を動き回る家紋">
|
22
|
-
|
23
|
-
<img class="kamon4" src="img/KAMON_bg4.png" alt="背景を動き回る家紋">
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
18
|
|
29
19
|
-------------
|
30
20
|
|
@@ -96,196 +86,10 @@
|
|
96
86
|
|
97
87
|
}
|
98
88
|
|
99
|
-
|
89
|
+
上記は一つの画像についてのコードですが、実際はコレが四つあり%で指定した数値が少しずつずれて指定しています。
|
100
90
|
|
101
|
-
0% { top: 0; left: 40px; }
|
102
91
|
|
103
|
-
20% { top:200px; left:50px; }
|
104
92
|
|
105
|
-
40% { top: 400px; left:100px; }
|
106
93
|
|
107
|
-
60% { top: 600px; left: 200px; }
|
108
|
-
|
109
|
-
80% { top:900px; left:350px; }
|
110
|
-
|
111
|
-
100% { top: 1200px; left: 10px; transform: rotate(360deg);}
|
112
|
-
|
113
|
-
}
|
114
|
-
|
115
|
-
.kamon2{
|
116
|
-
|
117
|
-
position: absolute;
|
118
|
-
|
119
|
-
animation-name: move2;
|
120
|
-
|
121
|
-
animation-duration: 18s;
|
122
|
-
|
123
|
-
animation-timing-function: linear;
|
124
|
-
|
125
|
-
animation-direction: alternate;
|
126
|
-
|
127
|
-
animation-iteration-count:infinite;
|
128
|
-
|
129
|
-
}
|
130
|
-
|
131
|
-
@-webkit-keykeyframes move2{
|
132
|
-
|
133
|
-
0% { top: 0; left: 40px; }
|
134
|
-
|
135
|
-
20% { top:200px; left:50px; }
|
136
|
-
|
137
|
-
40% { top: 400px; left:100px; }
|
138
|
-
|
139
|
-
60% { top: 600px; left: 200px; }
|
140
|
-
|
141
|
-
80% { top:900px; left:350px; }
|
142
|
-
|
143
|
-
100% { top: 1200px; left: 10px; transform: rotate(360deg);}
|
144
|
-
|
145
|
-
}
|
146
|
-
|
147
|
-
.kamon2{
|
148
|
-
|
149
|
-
position: absolute;
|
150
|
-
|
151
|
-
animation-name: move2;
|
152
|
-
|
153
|
-
animation-duration: 18s;
|
154
|
-
|
155
|
-
animation-timing-function: linear;
|
156
|
-
|
157
|
-
animation-direction: alternate;
|
158
|
-
|
159
|
-
animation-iteration-count:infinite;
|
160
|
-
|
161
|
-
}
|
162
|
-
|
163
|
-
@keyframes move3{
|
164
|
-
|
165
|
-
0% { bottom: -200px; left: 0;}
|
166
|
-
|
167
|
-
20% { bottom: 0; left: 50px;}
|
168
|
-
|
169
|
-
40% { bottom: 200px; left:100px;}
|
170
|
-
|
171
|
-
60% { bottom: 400px; left: 150px;}
|
172
|
-
|
173
|
-
80% { bottom:600px; left:200px;}
|
174
|
-
|
175
|
-
100% { bottom: 1000px; left: 10px; transform: rotate(360deg);}
|
176
|
-
|
177
|
-
}
|
178
|
-
|
179
|
-
.kamon3{
|
180
|
-
|
181
|
-
position: absolute;
|
182
|
-
|
183
|
-
animation-name: move3;
|
184
|
-
|
185
|
-
animation-duration: 16s;
|
186
|
-
|
187
|
-
animation-timing-function: linear;
|
188
|
-
|
189
|
-
animation-direction: alternate;
|
190
|
-
|
191
|
-
animation-iteration-count:infinite;
|
192
|
-
|
193
|
-
}
|
194
|
-
|
195
|
-
@-webkit-key keyframes move3{
|
196
|
-
|
197
|
-
0% { bottom: -200px; left: 0;}
|
198
|
-
|
199
|
-
20% { bottom: 0; left: 50px;}
|
200
|
-
|
201
|
-
40% { bottom: 200px; left:100px;}
|
202
|
-
|
203
|
-
60% { bottom: 400px; left: 150px;}
|
204
|
-
|
205
|
-
80% { bottom:600px; left:200px;}
|
206
|
-
|
207
|
-
100% { bottom: 1000px; left: 10px; transform: rotate(360deg);}
|
208
|
-
|
209
|
-
}
|
210
|
-
|
211
|
-
.kamon3{
|
212
|
-
|
213
|
-
position: absolute;
|
214
|
-
|
215
|
-
animation-name: move3;
|
216
|
-
|
217
|
-
animation-duration: 16s;
|
218
|
-
|
219
|
-
animation-timing-function: linear;
|
220
|
-
|
221
|
-
animation-direction: alternate;
|
222
|
-
|
223
|
-
animation-iteration-count:infinite;
|
224
|
-
|
225
|
-
}
|
226
|
-
|
227
|
-
@keyframes move4{
|
228
|
-
|
229
|
-
0% { bottom: -100px; right: 300px; }
|
230
|
-
|
231
|
-
20% { bottom: 150px; right:140px; }
|
232
|
-
|
233
|
-
30% { bottom: 350px; right:160px; }
|
234
|
-
|
235
|
-
70% { bottom: 550px; right: 200px; }
|
236
|
-
|
237
|
-
80% { bottom: 750px; right:100px; }
|
238
|
-
|
239
|
-
100% { bottom: 800px; right: 10px; transform: rotate(360deg);}
|
240
|
-
|
241
|
-
}
|
242
|
-
|
243
|
-
.kamon4{
|
244
|
-
|
245
|
-
position: absolute;
|
246
|
-
|
247
|
-
animation-name: move4;
|
248
|
-
|
249
|
-
animation-duration: 17s;
|
250
|
-
|
251
|
-
animation-timing-function: linear;
|
252
|
-
|
253
|
-
animation-direction: alternate;
|
254
|
-
|
255
|
-
animation-iteration-count:infinite;
|
256
|
-
|
257
|
-
}
|
258
|
-
|
259
|
-
@-webkit-key keyframes move4{
|
260
|
-
|
261
|
-
0% { bottom: -100px; right: 300px; }
|
262
|
-
|
263
|
-
20% { bottom: 150px; right:140px; }
|
264
|
-
|
265
|
-
30% { bottom: 350px; right:160px; }
|
266
|
-
|
267
|
-
70% { bottom: 550px; right: 200px; }
|
268
|
-
|
269
|
-
80% { bottom: 750px; right:100px; }
|
270
|
-
|
271
|
-
100% { bottom: 800px; right: 10px; transform: rotate(360deg);}
|
272
|
-
|
273
|
-
}
|
274
|
-
|
275
|
-
.kamon4{
|
276
|
-
|
277
|
-
position: absolute;
|
278
|
-
|
279
|
-
animation-name: move4;
|
280
|
-
|
281
|
-
animation-duration: 17s;
|
282
|
-
|
283
|
-
animation-timing-function: linear;
|
284
|
-
|
285
|
-
animation-direction: alternate;
|
286
|
-
|
287
|
-
animation-iteration-count:infinite;
|
288
|
-
|
289
|
-
}
|
290
94
|
|
291
95
|
![イメージ説明](b95f8adced1779d3e418b1e654179328.png)
|
1
文の変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,50 +1,14 @@
|
|
1
1
|
keyframesで表示したい画像が表示されないでaltで指定した文になってしまうのですがなぜでしょうか
|
2
2
|
|
3
|
-
|
3
|
+
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
4
|
+
|
8
|
-
|
9
|
-
(例)PHP(CakePHP)で●●なシステムを作っています。
|
10
|
-
|
11
|
-
■■な機能を実装中に以下のエラーメッセージが発生しました。
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
### 発生している問題・エラーメッセージ
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
画像altで指定した文になってしまう
|
5
|
+
htmlで指定した画像がaltで指定した文になってしまう
|
20
|
-
|
21
|
-
|
6
|
+
|
22
|
-
|
23
|
-
|
7
|
+
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
8
|
+
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
```ここに言語名を入力
|
32
|
-
|
33
|
-
|
9
|
+
コード
|
34
|
-
|
35
|
-
|
10
|
+
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
11
|
+
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
ここに問題に対して試したことを記載してください。
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
### 補足情報(FW/ツールのバージョンなど)
|
48
12
|
|
49
13
|
html
|
50
14
|
|
@@ -100,6 +64,38 @@
|
|
100
64
|
|
101
65
|
}
|
102
66
|
|
67
|
+
@-webkit-key frames move1{
|
68
|
+
|
69
|
+
0% { top: 0; right: 0; }
|
70
|
+
|
71
|
+
20% { top:200px; right:100px; }
|
72
|
+
|
73
|
+
40% { top: 400px; right:100px; }
|
74
|
+
|
75
|
+
60% { top: 600px; right: 200px; }
|
76
|
+
|
77
|
+
80% { top:900px; right:350px; }
|
78
|
+
|
79
|
+
100% { top: 1250px; right: 100px; transform: rotate(360deg);}
|
80
|
+
|
81
|
+
}
|
82
|
+
|
83
|
+
.kamon1{
|
84
|
+
|
85
|
+
position: absolute;
|
86
|
+
|
87
|
+
animation-name: move1;
|
88
|
+
|
89
|
+
animation-duration: 19s;
|
90
|
+
|
91
|
+
animation-timing-function: linear;
|
92
|
+
|
93
|
+
animation-direction: alternate;
|
94
|
+
|
95
|
+
animation-iteration-count:infinite;
|
96
|
+
|
97
|
+
}
|
98
|
+
|
103
99
|
@keyframes move2{
|
104
100
|
|
105
101
|
0% { top: 0; left: 40px; }
|
@@ -132,6 +128,38 @@
|
|
132
128
|
|
133
129
|
}
|
134
130
|
|
131
|
+
@-webkit-keykeyframes move2{
|
132
|
+
|
133
|
+
0% { top: 0; left: 40px; }
|
134
|
+
|
135
|
+
20% { top:200px; left:50px; }
|
136
|
+
|
137
|
+
40% { top: 400px; left:100px; }
|
138
|
+
|
139
|
+
60% { top: 600px; left: 200px; }
|
140
|
+
|
141
|
+
80% { top:900px; left:350px; }
|
142
|
+
|
143
|
+
100% { top: 1200px; left: 10px; transform: rotate(360deg);}
|
144
|
+
|
145
|
+
}
|
146
|
+
|
147
|
+
.kamon2{
|
148
|
+
|
149
|
+
position: absolute;
|
150
|
+
|
151
|
+
animation-name: move2;
|
152
|
+
|
153
|
+
animation-duration: 18s;
|
154
|
+
|
155
|
+
animation-timing-function: linear;
|
156
|
+
|
157
|
+
animation-direction: alternate;
|
158
|
+
|
159
|
+
animation-iteration-count:infinite;
|
160
|
+
|
161
|
+
}
|
162
|
+
|
135
163
|
@keyframes move3{
|
136
164
|
|
137
165
|
0% { bottom: -200px; left: 0;}
|
@@ -164,6 +192,38 @@
|
|
164
192
|
|
165
193
|
}
|
166
194
|
|
195
|
+
@-webkit-key keyframes move3{
|
196
|
+
|
197
|
+
0% { bottom: -200px; left: 0;}
|
198
|
+
|
199
|
+
20% { bottom: 0; left: 50px;}
|
200
|
+
|
201
|
+
40% { bottom: 200px; left:100px;}
|
202
|
+
|
203
|
+
60% { bottom: 400px; left: 150px;}
|
204
|
+
|
205
|
+
80% { bottom:600px; left:200px;}
|
206
|
+
|
207
|
+
100% { bottom: 1000px; left: 10px; transform: rotate(360deg);}
|
208
|
+
|
209
|
+
}
|
210
|
+
|
211
|
+
.kamon3{
|
212
|
+
|
213
|
+
position: absolute;
|
214
|
+
|
215
|
+
animation-name: move3;
|
216
|
+
|
217
|
+
animation-duration: 16s;
|
218
|
+
|
219
|
+
animation-timing-function: linear;
|
220
|
+
|
221
|
+
animation-direction: alternate;
|
222
|
+
|
223
|
+
animation-iteration-count:infinite;
|
224
|
+
|
225
|
+
}
|
226
|
+
|
167
227
|
@keyframes move4{
|
168
228
|
|
169
229
|
0% { bottom: -100px; right: 300px; }
|
@@ -196,4 +256,36 @@
|
|
196
256
|
|
197
257
|
}
|
198
258
|
|
259
|
+
@-webkit-key keyframes move4{
|
260
|
+
|
261
|
+
0% { bottom: -100px; right: 300px; }
|
262
|
+
|
263
|
+
20% { bottom: 150px; right:140px; }
|
264
|
+
|
265
|
+
30% { bottom: 350px; right:160px; }
|
266
|
+
|
267
|
+
70% { bottom: 550px; right: 200px; }
|
268
|
+
|
269
|
+
80% { bottom: 750px; right:100px; }
|
270
|
+
|
271
|
+
100% { bottom: 800px; right: 10px; transform: rotate(360deg);}
|
272
|
+
|
273
|
+
}
|
274
|
+
|
275
|
+
.kamon4{
|
276
|
+
|
277
|
+
position: absolute;
|
278
|
+
|
279
|
+
animation-name: move4;
|
280
|
+
|
281
|
+
animation-duration: 17s;
|
282
|
+
|
283
|
+
animation-timing-function: linear;
|
284
|
+
|
285
|
+
animation-direction: alternate;
|
286
|
+
|
287
|
+
animation-iteration-count:infinite;
|
288
|
+
|
289
|
+
}
|
290
|
+
|
199
291
|
![イメージ説明](b95f8adced1779d3e418b1e654179328.png)
|