Hi @toplisek, the animation itself could actually be done with CSS alone using rotate() with a transition – then you only need to toggle a class with JS to apply the rotation. Here’s a pen:
I have tested again your proposal. As you modify link using button, is it possible not to use a button styling but a link. It is an issue as you have one integrated button but I tried to manage using LI which contains a LI element but also SPAN. So, double elements. Please find my HTML code. I have tried but I could not manage as only arrow will be rotated if I click on this element but we have also a link called Contact Us which is an integrated part including an arrow.
Are you doing something else dynamically when you click ‘Contact’? (such as opening another panel).
If this is a bootstrap hide and show then you will already have a dynamic class (open) added to the parent and you can use this class to animate the arrow.