$('#some_element').one ('DOMMouseScroll', function (e) {//firefox
var delta = e.originalEvent.detail;
if (delta > 0) {
rotateDown()
}
});
When a user scrolls it, will call an animation.
The problem is it registers every single scroll instance, and calls the animation more than once, event with the ‘one’ function.