全画面背景画像のスライダーにしたくて、bgSwitcherというjQueryプラグインで実装したのですが、全て404エラーになってしまいます。
階層と名前も確認したのですが問題なさそうです。
コンソールのエラーを見てみたら、bgSwitcherのエラーは出ていなく、スライダーが変わるタイミングで404エラーだけ永遠に増えていくといった現象になっています。
原因がわかる方がいたら教えていただきたいです( ; ; )
足りない情報などありましたらご指摘ください。
html
1<section class="bg-slider"> 2 <h1></h1> 3</section>
css
1.bg-slider { 2 width: 100vw; 3 height: 100vh; 4 background-position:center center; 5 background-size: cover; 6 display: flex; 7 align-items: center; 8 justify-content: center; 9}
js
1jQuery(function($) { 2 $('.bg-slider').bgSwitcher({ 3 images: ['images/main_photo.jpg','images/main_photo2.jpg','images/main_photo3.jpg'], 4 interval: 3000, 5 loop: true, 6 shuffle: true, 7 effect: "fade", // fade,blind,clip,slide,drop,hide 8 duration: 500, 9 easing: "swing" // linear,swing 10 }); 11 });
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/04/11 08:14
2019/04/11 08:18
2019/04/11 11:17
2019/04/12 02:54 編集
2019/04/12 02:26