Changing animation from left absolute position to translateX