Animate Scroll Not Working In Firefox? July 09, 2024 Post a Comment html: Solution 1: Try this code$(document).ready(function () { // hide #back-top first $("#back-top").hide(); // fade in #back-top $(function () { $(window).scroll(function () { if ($(this).scrollTop() > 100) { $('#back-top').fadeIn(); } else { $('#back-top').fadeOut(); } }); // scroll body to 0px on click $('#topanimated a').click(function () { $('body,html').animate({ scrollTop: 0 }, 800); returnfalse; }); }); }); CopySet This ID in The Button id="back-top" Baca JugaHow To Get The Next Obj When Looping In The Django ModelLooping Using Position Absolute To Form 9 BoxesHow To Redirect The Request To Specified Php Page By Ajax Call? Share You may like these postsHow To Change Label Text Upon File Being Selected Within Form Using JavascriptHow To Unable Button If Textbox Suddenly Have ValuesIframe Allowfullscreen Not Working In Ie11 , Works For Youtube Video Not For Other Site SrcForm Design With Bootstrap - Align Text Boxes And Text Areas Post a Comment for "Animate Scroll Not Working In Firefox?"
Post a Comment for "Animate Scroll Not Working In Firefox?"