Animate Scroll Not Working In Firefox? September 11, 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 JugaCatch Javascript Customevent By Jquery On() Preserving Custom Properties At First "level"How To Reload Javascript Code BlockJquery .post And Form Data Share You may like these postsJquery Wrap First N Number Of Elements Into One New Elements And Rest N Into Another New Element Using SliceSetting Maximum And Minimum Xscale Values In Anychart Graph Results In An ExceptionHow To Scroll To Next Div Using Javascript?Jquery/javascript: Arrays Post a Comment for "Animate Scroll Not Working In Firefox?"
Post a Comment for "Animate Scroll Not Working In Firefox?"