inital class for setInterval using requestAnimationFrame.