Animate Scroll Not Working In Firefox? September 16, 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 JugaHtml5 Canvas - My Lines/arcs Are Not Appearing On Top Of An ImageChange Image When Page Refresh In AngularjsAdd Div With Dynamic Vergejs Viewport Values To Html Share You may like these postsChange Color Of Specific Text Within Html Tags Using JavascriptOne Link Opens Two Iframe Targets On Same PageAddeventlistener For Multiple Elements Doesn't Work With "focus" EventPrevent Html5 Videos From Downloading The Files On Mobile - Videojs Post a Comment for "Animate Scroll Not Working In Firefox?"
Post a Comment for "Animate Scroll Not Working In Firefox?"