use requestAnimationFrame to animate scroll.