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 JugaWhy Does Queryselector Only Select The First Element And How Can I Fix This?How To Get The Next Obj When Looping In The Django ModelLoading Total On Form Load Share You may like these postsHow To Fix Error In SharePoint While Adding Users In Multi Person Or Group Field(people Only)HTML5 History API - What Is The Max Size The State Object Can Be?Angularjs: Search Filter Not Working When Name Starting With ! (exclamation Mark)Add HTTP Basic Authentication To This HTTP GET In Angularjs Post a Comment for "Animate Scroll Not Working In Firefox?"
Post a Comment for "Animate Scroll Not Working In Firefox?"