Use translate to enable gpu acceleration and smooth out the animation