質問編集履歴
2
誤字修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -336,6 +336,8 @@
|
|
336
336
|
|
337
337
|
**4.1つの関数にして配列にしてreturnする**
|
338
338
|
|
339
|
+
**5.`.done`を遅延してみる**
|
340
|
+
|
339
341
|
結果・・・.doneの処理が一部されない
|
340
342
|
|
341
343
|
```jquery
|
1
誤字修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -172,9 +172,9 @@
|
|
172
172
|
|
173
173
|
$.when( // 先の順番の処理
|
174
174
|
|
175
|
-
$('.nextSlide').animate({left: 0},1500), //
|
175
|
+
$('.nextSlide').animate({left: 0},1500), // // 次をスライドイン
|
176
|
-
|
176
|
+
|
177
|
-
$('.current').animate({left: - width},1500) //
|
177
|
+
$('.current').animate({left: - width},1500) // スライドアウト
|
178
178
|
|
179
179
|
).done(function() { // whenが終わったら実行
|
180
180
|
|
@@ -224,9 +224,9 @@
|
|
224
224
|
|
225
225
|
function current() {
|
226
226
|
|
227
|
-
$('.nextSlide').animate({left: 0},1500); //
|
227
|
+
$('.nextSlide').animate({left: 0},1500); // // 次をスライドイン
|
228
|
-
|
228
|
+
|
229
|
-
$('.current').animate({left: - width},1500); //
|
229
|
+
$('.current').animate({left: - width},1500); // スライドアウト
|
230
230
|
|
231
231
|
}
|
232
232
|
|
@@ -260,9 +260,9 @@
|
|
260
260
|
|
261
261
|
var d = $.Deferred();
|
262
262
|
|
263
|
-
$('.nextSlide').animate({left: 0},1500); //
|
263
|
+
$('.nextSlide').animate({left: 0},1500); // // 次をスライドイン
|
264
|
-
|
264
|
+
|
265
|
-
$('.current').animate({left: - width},1500); //
|
265
|
+
$('.current').animate({left: - width},1500); // スライドアウト
|
266
266
|
|
267
267
|
return d.promise();
|
268
268
|
|
@@ -296,7 +296,7 @@
|
|
296
296
|
|
297
297
|
function first() {
|
298
298
|
|
299
|
-
return $('.nextSlide').animate({left: 0},1500); //
|
299
|
+
return $('.nextSlide').animate({left: 0},1500); // // 次をスライドイン
|
300
300
|
|
301
301
|
};
|
302
302
|
|
@@ -304,7 +304,7 @@
|
|
304
304
|
|
305
305
|
function second() {
|
306
306
|
|
307
|
-
return $('.current').animate({left: - width},1500); //
|
307
|
+
return $('.current').animate({left: - width},1500); // スライドアウト
|
308
308
|
|
309
309
|
};
|
310
310
|
|
@@ -344,9 +344,9 @@
|
|
344
344
|
|
345
345
|
var obj = new Object();
|
346
346
|
|
347
|
-
obj.val1 = $('.nextSlide').animate({left: 0},1500); //
|
347
|
+
obj.val1 = $('.nextSlide').animate({left: 0},1500); // // 次をスライドイン
|
348
|
-
|
348
|
+
|
349
|
-
obj.val2 = $('.current').animate({left: - width},1500); //
|
349
|
+
obj.val2 = $('.current').animate({left: - width},1500); // スライドアウト
|
350
350
|
|
351
351
|
return obj;
|
352
352
|
|