I'm trying to make a navigation bar with a dropdown menu which will contain some links like:
Menu1 | Menu2 | Menu3
-----
sub1_1 | sub2_1 | sub3_1
sub1_2 | sub2_2 | sub3_1
So when I click Menu1
it opens a rectangle with 2 text boxes which will be links. So far I've managed to add an animation to this rectangle and make it fadeIn when Menu1
is clicked.
The problem is when I try to hide the rectangle and show the one that is under Menu2
.
In short what I try to say is that if is a way of attaching multiple animations for an object but each one of them to be triggered at some click event or if there is a workaround for this.
I prefer not using multistate objects.