mediarox/module-mixin-menu-mobile-sliding

A javascript mixin to replace the "collapse" of submenus with a "slide" effect

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

Type:magento2-module

0.1.0 2022-02-23 21:22 UTC

This package is auto-updated.

Last update: 2024-04-24 02:30:45 UTC


README

Magento Menu widget mixin - slide instead of collapse.

Facts

  • It is designed as a javascript mixin for Magento Menu widget.
  • It overrides the behavior of the mobile menu.
  • It replaces the "collapse" of submenus with a "slide" effect.
  • "Slide" effect based on
  • Support's active category jump (data-nav-active)
  • Keep in mind:
    • The connection to the library "hc-offcanvas-nav" is only rudimentary. At the moment only 2 options (labelBack, width) are supported/used.
    • The library also does not support "destroy". But this should not be a problem in most cases due to the "mediaCheck" in the core-menu widget.
    • The library does not have a neutral/colorless theme. The included theme (blue) has to be customized again via a theme in most cases.
  • Demo

Installation

composer require mediarox/module-mixin-menu-mobile-sliding
bin/magento setup:upgrade