Simple page swiping using hardware acceleration and requestAnimationFrame