I have an animation added to every button that has class name “v - titel”. This animation shows and hides elements relative to the button (siblings + parent).
Every button should also trigger an animation that is specific to that particular button.
Why split it over 2 animations?
I want to split the actions in 2 different animations because almost all actions are generic and can be linked to the target element by relative linking (these elements are either siblings or parent from the trigger element). The advantage is of course that this setup makes it a lot faster to make changes, instead of duplicating the animation and having to make changes in all instances if I want to.
Every button should also control one element that different for every button. Thats why I need this button to also trigger a second animation that does this.
What is the best way to handle this kind of situation, because selecting 2 animations is not possible.
Unfortunately the website is confidential, but I can sketch something out if this is way too vague