回答編集履歴
1
補足の追加。
test
CHANGED
@@ -2,8 +2,28 @@
|
|
2
2
|
|
3
3
|
```JavaScript
|
4
4
|
|
5
|
-
$(function(){
|
5
|
+
$( function() {
|
6
6
|
|
7
|
+
$( '.crossfade' ).crossfade( {
|
8
|
+
|
9
|
+
start:'backimg.jpg'
|
10
|
+
|
11
|
+
, end:'backimg.png'
|
12
|
+
|
13
|
+
, threshold: 0.5
|
14
|
+
|
7
|
-
|
15
|
+
, backgroundPosition: 'center center'
|
16
|
+
|
17
|
+
} );
|
18
|
+
|
19
|
+
} );
|
8
20
|
|
9
21
|
```
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
あと、`end:'backimg.png'threshold:0.5` となっているところが `end:'backimg.png, 'threshold:0.5` なのも要修正。
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
コードは整形して書いたほうがミスを発見しやすくなりますよ。
|