© 2021 Greatives Hub - Powered by Greatives & Greatives Web

Reply To: Anchor menu overlaps page content on mobile.

Landing Forums Somentra (Impeka) Bug Report Anchor menu overlaps page content on mobile. Reply To: Anchor menu overlaps page content on mobile.

#476
Marius1989
Participant
Hub Member Badge

Hey Dan.

Try the following code, hope you like it.

@media only screen and (max-width: 775px) {
  .grve-anchor-menu .grve-anchor-wrapper .grve-container {
    width: 100%;
    max-width: 100%;
    margin-left: 28px;
  }
  .grve-wrapper.grve-anchor-wrapper:after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 150px;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 61%, rgba(255,255,255,1) 100%);
    pointer-events: none;
  }
 .grve-anchor-menu ul {
    overflow-x: auto;
    white-space: nowrap;
    padding-right: 160px;
  }
}

Disclaimer: This is not an answer to your question, just my personal solution for better UI/UX, as soon as the anchor menu items takes too much place on smaller screens. I also added a small visual indicator, so the user knows there is still some content, when swiping the anchor menu.

Privacy Preferences

When you visit our website, it may store information through your browser from specific services, usually in the form of cookies. Here you can change your Privacy preferences. It is worth noting that blocking some types of cookies may impact your experience on our website and the services we are able to offer.

Our website uses cookies, mainly from 3rd party services. Define your Privacy Preferences and/or agree to our use of cookies.