Sample to show flip animation of a view