Skip to content

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

License

Notifications You must be signed in to change notification settings

mediarox/module-mixin-menu-mobile-sliding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published