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 JugaDatetime From Utc In Local Time FormatWhy Does Queryselector Only Select The First Element And How Can I Fix This?How To Get The Next Obj When Looping In The Django Model Share You may like these postsExpected To Return A Value In Arrow; Function Array-callback-return. Why?Execute Jquery Every Time A Specific Function RunsUsing Fetch To Post Cross-origin Json Data To Express BackendComparing Today's Date With Another Date In Moment Is Returning The Wrong Date, Why? Post a Comment for "Animate Scroll Not Working In Firefox?"
Post a Comment for "Animate Scroll Not Working In Firefox?"