A simple tween class using request animation frame.