I’m having a problem with a animated menu with submenus:
I have a menu in which some items unfold as submenus. I have all the items ready and in order to simplify some things I have set it everything in one single timeline. This is how it works:
1.-The timeline is paused with the first menu items unfolded.
2.-User clicks a item that contains other several items as a submenu.
3.-A Custom behavior sends the action to a defined time; the animation continues, unfolding the submenus, then the timeline is paused again. So we have the menu unfolded, and the submenu unfolded as well for the user to explore it at his/her own pace.
Ok, so far so good up to here.
My problem starts as soon as the user clicks a new item. The planned behaviour is that as soon as the user clicks another item, the one that is unfolded, folds again and unfolds the new clicked item.
The planned behavior is as follows:
1.-The user clicks the new item. A Custom behavior is triggered.
2.-Using the custom behavior, the timeline plays and the unfolded menu folds again (either by running the timeline in reverse or by playing a folding animation again, I have it ready for both ways)
3.-The next step in the Custom Behavior is to send the timeline marker to a new position where the new clicked menu item will unfold through its own animation.
This latest step is what is giving me the trouble: Looks like the two actions are performed at the same time. So, the global effect is: the menu folds instantly, and the new submenu emerges with its cool smooth animation.
Only the unfolding animations are played, but not the folding ones. The timeline jumps instantly to the desired point in the timeline without playing the folding animation, either being the reverse animation, or the keyframed folding animation.
How can I make a Custom Behavior that makes one action, then the other, and not the two actions I have inside at once?
I hope that I explained well, english is not my mother language.
Thanks in advance for all the help you can thow… I am out of ideas, and I don’t know what I am doing wrong.