requestAnimationFrame and motion events example.