I want one interaction for al my custom dropdown links

I am making a custom navigation menu and a custom footer. But I want an interaction for all my links. Now when I open a link I open all the dropdowns at once.
How can I make sure that I only have to use 1 animation for all dropdown links and that they don’t all fall down at the same time. And not that I have to copy the animation 100 times and change the class name.

Here is an example that I want.
The mobile footer of apple.

So I want one interaction that I can use for all the links and not that I have to make for every link a new interaction. Now if I use the interaction on a link it will open all the dropdown content.

I hope somebody can help me.

Thanks


Here is my public share link: LINK
(how to access public share link)