working on layer based animation
fix flip transition