Animate Scroll Not Working In Firefox? November 20, 2023 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 Change Label Color In Javascript On Submit ButtonUnordered List - List Item PositionSet Iframe Url Based On Dynamic Url Share You may like these postsThe Form Code Does Not Work In Firefox (submit And Alert)Html Select List: Why Would Onchange Be Called Twice?How To Open And Collapse The Same JQuery Accordion With Click On It OnlyScale Different Width Images To Fit A Row And Maintain Equal Height Post a Comment for "Animate Scroll Not Working In Firefox?"
Post a Comment for "Animate Scroll Not Working In Firefox?"