mega-menu | mega menu a drop | Runtime Evironment library
kandi X-RAY | mega-menu Summary
kandi X-RAY | mega-menu Summary
A mega menu is a drop down that is triggered by hovering over a link or defined area. This dropdown usually shows all options in one main, mega-panel and oftentimes groups related topics into categories. In this article, Solodev will show you how to add a mega menu to your website.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mega-menu
mega-menu Key Features
mega-menu Examples and Code Snippets
Community Discussions
Trending Discussions on mega-menu
QUESTION
On the code copied from the site (below), the symptoms I'm having trouble with don't appear. The symptom (shown in this video) only appear on the live site when clicking on a nav item then hovering over the mega menu.
The other symptom is that sometimes a grey box appears when clicking on a link in the mega menu.
I can't see what is causing these issues on the live site.
Help appreciated.
...ANSWER
Answered 2022-Mar-22 at 06:18- Need to add check for touchscreen:
QUESTION
Previously I had .container-fluid.megamenusip {overflow-y: scroll}
which worked until it didn't (it broke the menu open/close button).
In a mobile view how do I scroll through each mega menu?
If I add back .container-fluid.megamenusip {overflow-y: scroll}
it doesn't resolve the issue.
The live site is here.
Help appreciated.
...ANSWER
Answered 2022-Mar-19 at 08:39It doesn't make sense to keep header fixed for mobiles. Already real-estate is very less there. For mobiles make header relative/static and for desktops keep it sticky.
I couldn't get your code in OP working like the website. So tried things on the website itself using Dev tools.
Following CSS makes header non fixed for small screens:
QUESTION
Our mobile menu works fine in Chrome & Firefox on a Pixel 5.
On an iPhone 5s (the only iPhone I have), an iPad Mini 2 and on an older iPad, the burger menu open & close icons do not show.
On a non-retina desktop display where Chrome & Firefox work in responsive mode (mobile viewport width), Safari will show the mobile menu open icon, but not the close icon.
The open icon is three pipes rotated 90deg: |||
The close icon is a font-awesome symbol:
...ANSWER
Answered 2022-Mar-14 at 05:44Please try this css in your code
QUESTION
In a mobile viewport, from the menu, when you select 'Product', then scroll down and select 'Solution', the page does not automatically scroll back up to see Solution and the top of its mega menu.
I've tried adjusting the function showMenu(self)
by adding:
ANSWER
Answered 2022-Mar-11 at 08:26You need to use this.scrollIntoView(true)
in the click event handler. Which will make the mega-drop-down
touch top edge of the viewport.
You can play with the input parameters to get different results.
QUESTION
In the demo below, when in a mobile viewport <=768px
I do the following:
- Click on Product, to open Product's mega menu.
- Scroll down, and click on Resources.
- I expect Product's mega menu to close, and Resource's mega menu to open.
- What happens is Product's mega menu closes, but Resource's mega menu doesn't open.
The problem doesn't exist working in the reverse order, i.e. opening Resource's mega menu first, then clicking on Product to close Resource's mega menu, and opening Product's mega menu (this works fine).
I've considered if an element is overlapping the correct item and preventing the right element from being clicked - I don't think this is the case.
You'll need to click the burger menu @ top right to see what happens.
Help appreciated.
...ANSWER
Answered 2022-Mar-08 at 06:40Remove display: none;
from .mega-menu
:
QUESTION
When the viewport is 768px or less, we want the a.mega-drop-down
links to open on click, rather than on hover as it is for desktop.
The problem is the first click doesn't do anything.
Only subsequent clicks do something.
How do we make the first click on a.mega-drop-down
function in the mobile viewport the same way subsequent clicks do?
You will need to adjust the code preview viewport down to 768px
or below to avoid the desktop hover effect taking place.
Help appreciated.
...ANSWER
Answered 2022-Feb-21 at 05:17I added .mega-drop-down>a{pointer-events: none; }
inside media query to prevent click and use toggleClass('hide-block')
instead of hide() method for mega-menu
element hide/show and few lines change in style for adding .hover
class only for below 768px screen and in script I changed something like hide() method to removeClass()
and toggle() to toggleClass()
.
I hope below snippet will help you a lot.
QUESTION
When I click on the link Product
, I'm trying to toggle the class hover
on the span
element, so the down-arrow turns into an up-arrow.
Help appreciated.
...ANSWER
Answered 2022-Feb-17 at 07:05$.children()
only selects direct descendants. You need to use $.find()
to select multiple levels down.
QUESTION
I am creating a mega menu, and am trying to add a class to a sibling element when the parent is hovered over. I have an example currently but it adds the class to every child element instead of only the one that has its parent being hovered over.
...ANSWER
Answered 2022-Jan-28 at 14:55You don't need javascript, you could use the :hover
CSS pseudo-class and CSS +
selector :
QUESTION
Thanks in advance for your help!
I work in bootstrap 4 building websites, I'm trying to build the following design:
I can't get my head round how it will work! At the moment I have the whole box set to container-fluid so there isn't any padding/margins applied but I don't understand how I can structure the columns to get it to work.
Here's my HTML for what I have tried so far:
...ANSWER
Answered 2021-Dec-07 at 15:54You could create a first row having 2 columns : col-sm-9
and col-sm-3
.
Then create another row in the col-sm-9
to list your services and use the col-sm-3
to display your image.
QUESTION
I am creating a mega menu in reactjs framework for my ecommerce website. When ever i hover on list item it shows mega menu div but when i move cursor down the menu hides itself. Why it is not stay as it is ?
Local state which controls the menu display state on onMouseEnter and onMouseLeave works well.
...ANSWER
Answered 2021-Oct-06 at 12:01Because you placed the function on "a" element, when you leave that element, the onMouseLeave function runs.
you should put those functions on the "mega-drop-down" element
also if u know CSS you can make it very simply
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mega-menu
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page