0

I have an anchor tag as shown below

<a data-scroll="top" class="show-overlay" href="#edit-event-announcement-1" ref="#edit-event-announcement-1"> Edit Announcement</a>

In Chrome, it works and scrolls to the top, but in Firefox it doesn't. Why?

Oliver Ni
  • 2,606
  • 7
  • 29
  • 44

1 Answers1

0

I think this is answered here: Animate scrollTop not working in firefox

"Firefox places the overflow at the html level, unless specifically styled to behave differently. To get it to work in Firefox, use $('body,html').animate( ... ); ..."

hope this helps, cheers!

OLIVER.KOO
  • 5,654
  • 3
  • 30
  • 62