Fix scroll animation in firefox