Added a delay argument. Better support for Android and a new animation "flip"