fancier flip animation (hopefully it works)