Resetting a card to saved on close card.
Posted: Mon Apr 30, 2012 6:42 am
Hi,
I have a fairly complex animation that changes the location of some img's, disables some buttons, etc. If the user leaves the card early in the middle of the animation I would like the card to be restored to its opening state on open card or before it closes the card. Just as if the stack was relaunched from its icon. I started trying to reset the state of all the objects but it began to get complicated. Is there an easy way to restore the card to its standalone saved state so that when I return to the card the animation can start again fresh? Thought about having a duplicate card in the stack and overwriting the card each time? Or I guess I could just not let the user leave until the anim is done and resets itself but that seems restrictive. Any better ideas?
I have a fairly complex animation that changes the location of some img's, disables some buttons, etc. If the user leaves the card early in the middle of the animation I would like the card to be restored to its opening state on open card or before it closes the card. Just as if the stack was relaunched from its icon. I started trying to reset the state of all the objects but it began to get complicated. Is there an easy way to restore the card to its standalone saved state so that when I return to the card the animation can start again fresh? Thought about having a duplicate card in the stack and overwriting the card each time? Or I guess I could just not let the user leave until the anim is done and resets itself but that seems restrictive. Any better ideas?