add a class to opened mobile menu

More
5 years 6 months ago #54015 by Thosi
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

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

More
5 years 6 months ago #54016 by ced1870
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

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

More
5 years 6 months ago - 5 years 6 months ago #54027 by Thosi
Hi,

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

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

More
5 years 6 months ago #54028 by ced1870
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

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

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

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

More
5 years 6 months ago #54051 by ced1870
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
The following user(s) said Thank You: Thosi

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

Time to create page: 0.208 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 532 guests and no members online