0

This script is not working in Mozilla

$('body').animate({ scrollTop: $("body").find(".Pickup").offset().top - 200 }, 'slow');

What i have to do?

Sergey
  • 5,396
  • 3
  • 26
  • 38

1 Answers1

0

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( ... );
callback
  • 3,981
  • 1
  • 31
  • 55