質問編集履歴

2

再度記入

2019/05/29 06:05

投稿

unagikabayaki
unagikabayaki

スコア15

test CHANGED
File without changes
test CHANGED
@@ -16,236 +16,290 @@
16
16
 
17
17
  <!DOCTYPE html>
18
18
 
19
- <html>
19
+
20
20
 
21
21
  <head>
22
22
 
23
- <title></title>
23
+ <meta charset="UTF-8">
24
+
25
+ <link href="style.css" rel="stylesheet">
24
26
 
25
27
  </head>
26
28
 
27
29
  <body>
28
30
 
29
- ```html
30
-
31
- <meta charset="UTF-8">
32
-
33
- <link href="style.css" rel="stylesheet">
34
-
35
31
  <div class="wrapper">
36
32
 
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
37
45
  <div class="crowd">
38
46
 
39
47
  <div class="SImg"></div>
40
48
 
41
49
  </div>
42
50
 
51
+
52
+
53
+
54
+
55
+
56
+
43
- <div class="background">
57
+ <div class="background">
44
-
58
+
45
- <ul>
59
+ <ul>
46
-
60
+
47
- <li>
61
+ <li>
48
-
62
+
49
- <a href="#"><img alt="wall" height="438" src="images/wall.png" width="548"></a>
63
+ <a href="#"><img alt="wall" height="438" src="images/wall.png" width="548"></a>
50
-
64
+
51
- </li>
65
+ </li>
52
-
66
+
53
- <li>
67
+ <li>
54
-
68
+
55
- <a href="#"><img alt="door" height="120" src="images/door.png" width="104"></a>
69
+ <a href="#"><img alt="door" height="120" src="images/door.png" width="104"></a>
56
-
70
+
57
- </li>
71
+ </li>
58
-
72
+
59
- <li>
73
+ <li>
60
-
74
+
61
- <a href="#"><img alt="window" class="window" height="75" src="images/window.png" width="75"></a>
75
+ <a href="#"><img alt="window" class="window" height="75" src="images/window.png" width="75"></a>
62
-
76
+
63
- </li>
77
+ </li>
64
-
78
+
65
- <li>
79
+ <li>
66
-
80
+
67
- <a href="#"><img alt="roof" height="340" src="images/roof.png" width="613"></a>
81
+ <a href="#"><img alt="roof" height="340" src="images/roof.png" width="613"></a>
68
-
82
+
69
- </li>
83
+ </li>
70
-
84
+
71
- <li>
85
+ <li>
72
-
86
+
73
- <a href="#"><img alt="chimny" height="229" src="images/chimny.png" width="182"></a>
87
+ <a href="#"><img alt="chimny" height="229" src="images/chimny.png" width="182"></a>
74
-
88
+
75
- </li>
89
+ </li>
76
-
90
+
77
- </ul>
91
+ </ul>
78
-
92
+
79
- </div>```
93
+ </div
94
+
95
+
96
+
97
+
80
98
 
81
99
  </div>
82
100
 
101
+
102
+
103
+
104
+
83
105
  </body>
84
106
 
85
107
  </html>
86
108
 
109
+
110
+
87
111
  ```
88
112
 
89
113
 
90
114
 
91
115
  ```css
92
116
 
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
93
125
  /*///////////////////アニメーション01///////////////////*/
94
126
 
95
127
 
96
128
 
97
- .background ul li:nth-child(n+2) {
129
+ .background ul li:nth-child(n+2) {
98
-
130
+
99
- animation: horizontal 1s ease-in-out infinite alternate;
131
+ animation: horizontal 1s ease-in-out infinite alternate;
100
-
132
+
101
- list-style: none;
133
+ list-style: none;
134
+
135
+ }
136
+
137
+ .background ul li a img {
138
+
139
+ animation: vertical 1s ease-in-out infinite alternate;
140
+
141
+ }
142
+
143
+
144
+
145
+ .background ul li:nth-child(2) {
146
+
147
+ animation-duration: 1.3s;
148
+
149
+ position: absolute;
150
+
151
+ top: 500px;
152
+
153
+ left: 250px;
154
+
155
+ }
156
+
157
+ .background ul li:nth-child(3) {
158
+
159
+ position: absolute;
160
+
161
+ top: 330px;
162
+
163
+ left: 250px;
164
+
165
+ }
166
+
167
+ .background ul li a .window {
168
+
169
+ width: 150%;
170
+
171
+ height: 150%;
172
+
173
+ }
174
+
175
+ .background ul li:nth-child(4) {
176
+
177
+ animation-duration: 1.7s;
178
+
179
+ position: absolute;
180
+
181
+ top: 0px;
182
+
183
+ left: 0px;
184
+
185
+ }
186
+
187
+ .background ul li:nth-child(5) {
188
+
189
+ animation-duration: 1.9s;
190
+
191
+ position: absolute;
192
+
193
+ top: -50px;
194
+
195
+ left: 400px;
196
+
197
+ }
198
+
199
+
200
+
201
+
202
+
203
+ @keyframes horizontal {
204
+
205
+ 0% {
206
+
207
+ transform: translateX( -10px);
208
+
209
+ }
210
+
211
+ 100% {
212
+
213
+ transform: translateX( 0px);
214
+
215
+ }
216
+
217
+ }
218
+
219
+ @keyframes vertical {
220
+
221
+ 0% {
222
+
223
+ transform: translateY(-50px);
224
+
225
+ }
226
+
227
+ 100% {
228
+
229
+ transform: translateY( 0px);
230
+
231
+ }
232
+
233
+ }
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+ /*///////////////////アニメーション02///////////////////*/
242
+
243
+
244
+
245
+
246
+
247
+ .crowd .SImg {
248
+
249
+ background-image: url(images/crowd02.png);
250
+
251
+ width: 1000px;
252
+
253
+ height: 350px;
254
+
255
+ background-position: 50% 50%;
256
+
257
+ -webkit-backface-visibility: hidden;
258
+
259
+ -webkit-animation: move 20s linear infinite 0s;
260
+
261
+ -moz-animation: move 20s linear infinite 0s;
262
+
263
+ -o-animation: move 20s linear infinite 0s;
264
+
265
+ -ms-animation: move 20s linear infinite 0s;
266
+
267
+ animation: move 20s linear infinite 0s;
102
268
 
103
269
  }
104
270
 
271
+
272
+
273
+
274
+
275
+ @keyframes move {
276
+
277
+ 0% {
278
+
279
+ opacity:0;
280
+
281
+ transform: scale(0);
282
+
283
+ }
284
+
285
+ 10% {
286
+
287
+ opacity:1;
288
+
105
- .background ul li a img {
289
+ transform: scale(1.05);
290
+
106
-
291
+ }
292
+
293
+
294
+
295
+ 100% {
296
+
297
+ opacity:1;
298
+
107
- animation: vertical 1s ease-in-out infinite alternate;
299
+ transform:scale(1000);
300
+
301
+ }
108
302
 
109
303
  }
110
304
 
111
- .background ul li:nth-child(2) {
112
-
113
- animation-duration: 1.3s;
114
-
115
- position: absolute;
116
-
117
- top: 500px;
118
-
119
- left: 250px;
120
-
121
- }
122
-
123
- .background ul li:nth-child(3) {
124
-
125
- position: absolute;
126
-
127
- top: 330px;
128
-
129
- left: 250px;
130
-
131
- }
132
-
133
- .background ul li a .window {
134
-
135
- width: 150%;
136
-
137
- height: 150%;
138
-
139
- }
140
-
141
- .background ul li:nth-child(4) {
142
-
143
- animation-duration: 1.7s;
144
-
145
- position: absolute;
146
-
147
- top: 0px;
148
-
149
- left: 0px;
150
-
151
- }
152
-
153
- .background ul li:nth-child(5) {
154
-
155
- animation-duration: 1.9s;
156
-
157
- position: absolute;
158
-
159
- top: -50px;
160
-
161
- left: 400px;
162
-
163
- }
164
-
165
- @keyframes horizontal {
166
-
167
- 0% {
168
-
169
- transform: translateX( -10px);
170
-
171
- }
172
-
173
- 100% {
174
-
175
- transform: translateX( 0px);
176
-
177
- }
178
-
179
- }
180
-
181
- @keyframes vertical {
182
-
183
- 0% {
184
-
185
- transform: translateY(-50px);
186
-
187
- }
188
-
189
- 100% {
190
-
191
- transform: translateY( 0px);
192
-
193
- }
194
-
195
- }
196
-
197
- /*///////////////////アニメーション02///////////////////*/
198
-
199
-
200
-
201
- .crowd .SImg {
202
-
203
- background-image: url(images/crowd02.png);
204
-
205
- width: 1000px;
206
-
207
- height: 350px;
208
-
209
- background-position: 50% 50%;
210
-
211
- -webkit-backface-visibility: hidden;
212
-
213
- -webkit-animation: move 20s linear infinite 0s;
214
-
215
- -moz-animation: move 20s linear infinite 0s;
216
-
217
- -o-animation: move 20s linear infinite 0s;
218
-
219
- -ms-animation: move 20s linear infinite 0s;
220
-
221
- animation: move 20s linear infinite 0s;
222
-
223
- }
224
-
225
- @keyframes move {
226
-
227
- 0% {
228
-
229
- opacity: 0;
230
-
231
- transform: scale(0);
232
-
233
- }
234
-
235
- 10% {
236
-
237
- opacity: 1;
238
-
239
- transform: scale(1.05);
240
-
241
- }
242
-
243
- 100% {
244
-
245
- opacity: 1;
246
-
247
- transform: scale(1000);
248
-
249
- }}
250
-
251
305
  ```

1

タグ入力漏れ

2019/05/29 06:04

投稿

unagikabayaki
unagikabayaki

スコア15

test CHANGED
File without changes
test CHANGED
@@ -246,6 +246,6 @@
246
246
 
247
247
  transform: scale(1000);
248
248
 
249
- }
249
+ }}
250
250
 
251
251
  ```