Animate Scroll Not Working In Firefox? December 25, 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 JugaBootstrap Navbar Is Displaying Vertically Instead Of HorizontallyBootstrap 3 Collapse On HoverBootstrap Footer Element Position Bottom Share You may like these postsA Href Links Not Clickable Or HighlightableHow Do You Change The Style Of A Bootstrap CheckboxBootstrap Checkbox And Label On Same LineChanging The Color Of Active Nav-item Post a Comment for "Animate Scroll Not Working In Firefox?"
Post a Comment for "Animate Scroll Not Working In Firefox?"