Firefox\'s new smooth scrolling feature causes the scroll callback to trigger at each step in the animation.
Is
It depends on your purpose. I'm taking a guess based on your code that you would like to trigger an animation as the user scrolls down the page, a bit like Ben the Bodyguard: http://benthebodyguard.com/index.php
To achieve this, you tie the animation to the position in the page. You can get the current scroll position from the event object that is passed to the scroll method. You'll then need to do some maths to determine if the current scroll position has changed enough to trigger the next animation.