ホームページでよくある、「上へ戻る」ボタンをJqueryを使い表示させています。
そのボタンをsvgで作り直したところ、表示されなくなりました。
jQuery
1jQuery(function() { 2 jQuery('#areaPagetop').hide(); 3 jQuery(window).scroll(function() { 4 if(jQuery(window).scrollTop() > 0) { 5 jQuery('#areaPagetop').slideDown(600); 6 } else { 7 jQuery('#areaPagetop').slideUp(600); 8 } 9 }); 10}); 11jQuery(function() { 12 jQuery('#areaPagetop').click(function() { 13 jQuery('html,body').animate({scrollTop:0}, '300'); 14 }); 15});
jqueryは上のような一般的なソースです。
SVG画像を使うと何か修正をする必要がありますか?
該当箇所のHTMLも提示してもらえるでしょうか?
あなたの回答
tips
プレビュー