add a class to opened mobile menu

add a class to opened mobile menu was created by Thosi

Posted 4 years 5 months ago #54015
Is it possible to add a class to the opened mobile menu?
<div id="maximenuck179-mobile" class="mobilemaximenuck menu-open" style="...">
Now it just changes the style parameters:
<div id="maximenuck179-mobile" class="mobilemaximenuck" style="position: fixed; overflow: hidden auto; z-index: 100000; top: 0px; left: 0px; width: 100%; height: 100%; display: block; opacity: 1;">

Could this be possible?
Thanks
Thomas
by Thosi

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic add a class to opened mobile menu

Posted 4 years 5 months ago #54016
Hi
please give me more infos about your need and what you want to do , because the menu is shown/hidden, not opened/closed ;)
CEd

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by Thosi on topic add a class to opened mobile menu

Posted 4 years 5 months ago #54027
Hi,

just for the status of the mobile menu, like:
class="mobilemaximenuck menu-visible"
class="mobilemaximenuck menu-active"
Last Edit:4 years 5 months ago by Thosi
Last edit: 4 years 5 months ago by Thosi.

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic add a class to opened mobile menu

Posted 4 years 5 months ago #54028
please tell me what you want to do with the status, for a CSS target, a JS function, ... ? by JS you can directly check the display value

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by Thosi on topic add a class to opened mobile menu

Posted 4 years 5 months ago #54042
just a little animation on the menu items when the menu is visible
by Thosi

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic add a class to opened mobile menu

Posted 4 years 5 months ago #54051
ok I see, thank you for the clarification
I can check that and add it in my code, now the problem is that you are using the old plugin Maximenu Mobile which has been replaced with Mobile Menu CK
www.joomlack.fr/en/joomla-extensions/mobile-menu-ck

if you want to use this one, I can do it in the next version and add a CSS class when the menu opens. I can not add it to the maximenu mobile as it is no more updated

let me know

Joomlack Webmaster and Developer

by ced1870
The following user(s) said Thank You: Thosi

Please Log in or Create an account to join the conversation.

Time to create page: 0.681 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 722 guests and 2 members online