Animate Scroll Not Working In Firefox? February 10, 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 JugaA:active Vs Mousedown Event Preventdefault()-edHighcharts - Issue With The Chart Reflow FunctionHow To Clear A Span Inside A Div Share You may like these postsOuterheight In Chrome Giving Wrong Value, Ok In Ie And FirefoxWhat Is The Issue In This Javascript Short Circuit AssignmentHow To Use A React Component Fetched From An Api?Automatically Created Variables From Ids In Js? Post a Comment for "Animate Scroll Not Working In Firefox?"
Post a Comment for "Animate Scroll Not Working In Firefox?"