質問編集履歴
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -260,4 +260,12 @@
|
|
260
260
|
|
261
261
|
```
|
262
262
|
|
263
|
+
###追記
|
264
|
+
|
265
|
+
左右のインディケータをクリックすると、3枚目以降にfadeInした文字が映し出されてからfadeOutするため、期待している動作にならないようです。
|
266
|
+
|
267
|
+
よって、fadeOutがスライドする前に実行できれば期待動作になるようにも思えます。
|
268
|
+
|
269
|
+
|
270
|
+
|
263
271
|
以上、ご確認お願いいたします。
|
1
コード追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,6 +8,110 @@
|
|
8
8
|
|
9
9
|
1枚目に表示されているスライドのインディケータをクリックすると2枚目のスライドの文字がfadeInしているのは良いのですが、3枚目と4枚目のスライドも、1枚目のスライドのインディケータをクリックするタイミングでfadeInしてしまいます。
|
10
10
|
|
11
|
+
__js__
|
12
|
+
|
13
|
+
```
|
14
|
+
|
15
|
+
$(function() {
|
16
|
+
|
17
|
+
$(".carousel-caption").fadeIn();
|
18
|
+
|
19
|
+
$("#carousel-example-generic").on("slide.bs.carousel",function() {
|
20
|
+
|
21
|
+
$(".carousel-caption").fadeOut("fast");
|
22
|
+
|
23
|
+
});
|
24
|
+
|
25
|
+
$("#carousel-example-generic").on("slid.bs.carousel",function() {
|
26
|
+
|
27
|
+
$(".carousel-caption").fadeIn(5000);
|
28
|
+
|
29
|
+
});
|
30
|
+
|
31
|
+
});
|
32
|
+
|
33
|
+
```
|
34
|
+
|
35
|
+
__html__
|
36
|
+
|
37
|
+
```
|
38
|
+
|
39
|
+
<section class="carousel-size">
|
40
|
+
|
41
|
+
<div id="carousel-example-generic" class="carousel slide">
|
42
|
+
|
43
|
+
<div class="carousel-inner">
|
44
|
+
|
45
|
+
<div class="item active">
|
46
|
+
|
47
|
+
<img src="images/slide1.jpg" alt="slide1" width="100%">
|
48
|
+
|
49
|
+
<div class="carousel-caption">
|
50
|
+
|
51
|
+
文章
|
52
|
+
|
53
|
+
</div>
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div class="item">
|
58
|
+
|
59
|
+
<img src="images/slide2.jpg" alt="slide2" width="100%">
|
60
|
+
|
61
|
+
<div class="carousel-caption">
|
62
|
+
|
63
|
+
文章
|
64
|
+
|
65
|
+
</div>
|
66
|
+
|
67
|
+
</div>
|
68
|
+
|
69
|
+
<div class="item">
|
70
|
+
|
71
|
+
<img src="images/slide3.jpg" alt="slide3" width="100%">
|
72
|
+
|
73
|
+
<div class="carousel-caption">
|
74
|
+
|
75
|
+
文章
|
76
|
+
|
77
|
+
</div>
|
78
|
+
|
79
|
+
</div>
|
80
|
+
|
81
|
+
<div class="item">
|
82
|
+
|
83
|
+
<img src="images/slide4.jpg" alt="slide4" width="100%">
|
84
|
+
|
85
|
+
<div class="carousel-caption">
|
86
|
+
|
87
|
+
文章
|
88
|
+
|
89
|
+
</div>
|
90
|
+
|
91
|
+
</div>
|
92
|
+
|
93
|
+
</div>
|
94
|
+
|
95
|
+
<a class="left carousel-control" href="#carousel-example-generic" data-slide="prev">
|
96
|
+
|
97
|
+
<span class="glyphicon glyphicon-chevron-left"></span>
|
98
|
+
|
99
|
+
</a>
|
100
|
+
|
101
|
+
<a class="right carousel-control" href="#carousel-example-generic" data-slide="next">
|
102
|
+
|
103
|
+
<span class="glyphicon glyphicon-chevron-right"></span>
|
104
|
+
|
105
|
+
</a>
|
106
|
+
|
107
|
+
</div>
|
108
|
+
|
109
|
+
</section>
|
110
|
+
|
111
|
+
```
|
112
|
+
|
113
|
+
|
114
|
+
|
11
115
|
###問題点
|
12
116
|
|
13
117
|
コーディングを確認すると確かに上記の動きになることは理解できるのですが、どのようにコーディングすれば「実現したいこと」に記載したような動きになるか、わかりません。
|