Add state and animation to flipPath