I need help adding transitions to my header drawer menu on mobile for dawn theme 15.2.0. I have changed the menu into an accordion that works just fine, however i could not get any transitions to work with it. It is important that the transitions work for both closing & opening the different menu items. This is my store url: https://washologi.com/
This is my header-drawer.liquid file code:
{% comment %}
Renders a header drawer menu for mobile and desktop.
Usage:
{% render 'header-drawer' %}
{% endcomment %}
You can see what kind of transitions i want if you take a look at my footer menu accordion. Thanks!
Thanks for the suggestion! It works perfectly when i go into mobile mode through the inspect tool on desktop, however when i try it out on my phone the transition does not seem to work on neither Safari nor Google.
Since the previous code i also updated the js now so that it does not close a submenu when another one is opened. This is the new js:
Please try updating your custom code to include dynamic height calculation for the detail-content.
In the below code, I added submenu to your custom code toggleAccordion. Let me know if you need further guidance!
I understand that you cant preview it on mobile device, however could you provide me with an example of how you would do the dynamic height calculation? I have tried a couple of different things but have not gotten it to work.