質問編集履歴
5
情報追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
・fadeOutの方はスクロール中であっても、消えてくれます。
|
7
7
|
・.fadeIn()の代わりに、.css()などではスクロール中でも変化するので、イベント自体は発生しているようです。
|
8
8
|
・iOSの環境はバージョン9.3.5です。
|
9
|
+
・iOS10のバージョンでも同様でした。
|
9
10
|
|
10
11
|
よろしくお願いします。
|
11
12
|
|
4
テキスト修正
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
|
1
|
+
jQuery iOS スクロールイベント中に.fadeIn()が発生しない
|
body
CHANGED
@@ -4,8 +4,8 @@
|
|
4
4
|
慣性スクロールが終了した後にしかfadeInしてくれません。
|
5
5
|
|
6
6
|
・fadeOutの方はスクロール中であっても、消えてくれます。
|
7
|
-
・.fadeIn()
|
7
|
+
・.fadeIn()の代わりに、.css()などではスクロール中でも変化するので、イベント自体は発生しているようです。
|
8
|
-
・iOSの環境は9.3.5です。
|
8
|
+
・iOSの環境はバージョン9.3.5です。
|
9
9
|
|
10
10
|
よろしくお願いします。
|
11
11
|
|
@@ -44,9 +44,6 @@
|
|
44
44
|
width: 1024px;
|
45
45
|
margin:0 auto;
|
46
46
|
}
|
47
|
-
body{
|
48
|
-
text-align:center;
|
49
|
-
}
|
50
47
|
p{
|
51
48
|
color:#fff;
|
52
49
|
font-size:16px;
|
@@ -59,12 +56,6 @@
|
|
59
56
|
background:tomato;
|
60
57
|
margin:0 auto;
|
61
58
|
}
|
62
|
-
.hero p{
|
63
|
-
color:#fff;
|
64
|
-
display:inline-block;
|
65
|
-
vertical-align: midle;
|
66
|
-
line-height:100%;
|
67
|
-
}
|
68
59
|
.fix_menu{
|
69
60
|
display:none;
|
70
61
|
position:fixed;
|
@@ -79,10 +70,9 @@
|
|
79
70
|
z-index: 99;
|
80
71
|
}
|
81
72
|
.contents{
|
82
|
-
width:
|
73
|
+
width:1000px;
|
83
74
|
height:2000px;
|
84
75
|
margin:40px auto;
|
85
|
-
padding:20px;
|
86
76
|
background: #ddd;
|
87
77
|
}
|
88
78
|
```
|
3
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -74,7 +74,7 @@
|
|
74
74
|
margin:0 auto;
|
75
75
|
width: 100%;
|
76
76
|
height:80px;
|
77
|
-
background: #f75586
|
77
|
+
background: #f75586;
|
78
78
|
box-shadow: 0 3px 5px 0 rgba(0,0,0,.15);
|
79
79
|
z-index: 99;
|
80
80
|
}
|
2
コードを追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -26,8 +26,46 @@
|
|
26
26
|
});
|
27
27
|
});
|
28
28
|
```
|
29
|
+
```lang-HTML
|
30
|
+
<body>
|
31
|
+
<div class="hero">
|
32
|
+
<p>Hero Area</p>
|
33
|
+
</div>
|
34
|
+
<div id="js-fix_menu" class="fix_menu">
|
35
|
+
<p>Fix Menu</p>
|
36
|
+
</div>
|
37
|
+
<div class="contents">
|
38
|
+
<p>Page Contents</p>
|
39
|
+
</div>
|
40
|
+
</body>
|
41
|
+
```
|
29
42
|
```lang-CSS
|
43
|
+
html{
|
44
|
+
width: 1024px;
|
45
|
+
margin:0 auto;
|
46
|
+
}
|
47
|
+
body{
|
48
|
+
text-align:center;
|
49
|
+
}
|
50
|
+
p{
|
51
|
+
color:#fff;
|
52
|
+
font-size:16px;
|
53
|
+
text-align: center;
|
54
|
+
margin:20px auto 0;
|
55
|
+
}
|
56
|
+
.hero{
|
57
|
+
width:1000px;
|
58
|
+
height:300px;
|
59
|
+
background:tomato;
|
60
|
+
margin:0 auto;
|
61
|
+
}
|
62
|
+
.hero p{
|
63
|
+
color:#fff;
|
64
|
+
display:inline-block;
|
65
|
+
vertical-align: midle;
|
66
|
+
line-height:100%;
|
67
|
+
}
|
30
|
-
|
68
|
+
.fix_menu{
|
31
69
|
display:none;
|
32
70
|
position:fixed;
|
33
71
|
top:0;
|
@@ -36,8 +74,15 @@
|
|
36
74
|
margin:0 auto;
|
37
75
|
width: 100%;
|
38
76
|
height:80px;
|
39
|
-
background: #f75586;
|
77
|
+
background: #f75586 url('/rent/image/top/bg_header_btm.png') repeat-x bottom;
|
40
|
-
|
78
|
+
box-shadow: 0 3px 5px 0 rgba(0,0,0,.15);
|
41
79
|
z-index: 99;
|
42
80
|
}
|
81
|
+
.contents{
|
82
|
+
width:960px;
|
83
|
+
height:2000px;
|
84
|
+
margin:40px auto;
|
85
|
+
padding:20px;
|
86
|
+
background: #ddd;
|
87
|
+
}
|
43
88
|
```
|
1
記述間違い修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
javascript中級者です。
|
2
|
-
Jqueryで、
|
2
|
+
Jqueryで、iPad環境で、スクロール中(タッチパッドから指を離さない)に、fadeInが発生しません。
|
3
3
|
いろいろ調べてみましたが、touchmoveイベントを使っているのにfadeInの方だけダメで、
|
4
4
|
慣性スクロールが終了した後にしかfadeInしてくれません。
|
5
5
|
|