[Resolved] Full screen mobile menu on Smartphone

Home Forums Support [Resolved] Full screen mobile menu on Smartphone

Home Forums Support Full screen mobile menu on Smartphone

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #818133
    Ender

    I would like customize a little the slide menu. I currently user the menu only on mobile. To open the menu in full screen i use this code

    https://generatepress.com/forums/topic/full-screen-mobile-menu-on-smartphone-and-desktop/#post-707494

    with this little modification:

    .slideout-overlay {
        background: #000;
    }
    
    .offside--right.is-open {
        right: auto;
        left: calc(50% - 132.5px);
        transform: translate3d(0,0,0);
    }
    
    .nav-aligned-right.nav-below-header .main-navigation.slideout-navigation {
        text-align: left;
    }
    
    #generate-slideout-menu .slideout-menu li {
        text-align: left;
    }
    
    #generate-slideout-menu .slideout-menu li a {
        border-bottom: 1px solid #282828;
        padding: 0;
    }
    
    .offside-js--is-right.slide-opened .slideout-overlay button.slideout-exit {
        left: 0;
        margin-left: -15px;
    }
    
    .main-navigation.slideout-navigation {
        background: transparent;
        padding-top: 10%;
    }
    
    li.slideout-toggle {
        position: absolute;
        left: 0;
    }
    
    .main-navigation .main-nav ul li.slideout-toggle a {
        padding: 15px;
        line-height: normal;
    }
    
    .inside-navigation {
        position: static;
    }

    1. Chrome / Safari problem

    Adding this CSS to have the close button on the left corner is working on Chrome (Win / iMac).

    .offside-js--is-right.slide-opened .slideout-overlay button.slideout-exit {
        left: 0;
        margin-left: -15px;
    }

    But unfortunately not on Safari (iMac).

    Can u help?

    2. How can I stop the scrolling when using this full screen menu?

    3. How could I make a little transition, for example the menu names will pull from top to the bottom with little fade?

    GeneratePress 2.2.2
    #818149
    Ender

    I could solve now the Question 1 with adding this for Safari:

    .offside-js--is-right.slide-opened .slideout-overlay button.slideout-exit {
        right: unset;
    }

    Any Ideas for the other two questions? Many thanks.

    #818276
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    2. Try this:

    .slide-opened body {
        overflow: hidden;
    }

    3. Try this:

    .slideout-navigation .main-nav {
        opacity: 0;
        transform: translateY(-50px);
        transition: opacity 500ms ease-in-out, transform 500ms ease-in-out;
    }
    
    .slide-opened .slideout-navigation .main-nav {
        opacity: 1;
        transform: translateY(0);
    }

    Let me know ๐Ÿ™‚

    #818439
    Ender

    That’s why I love your service and recommend it to all friends.

    Thank you so much. It works really well.

    #818873
    Tom
    Lead Developer
    Lead Developer
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.