[Resolved] Push sticky nav to right when canvas opens

Home Forums Support [Resolved] Push sticky nav to right when canvas opens

Home Forums Support Push sticky nav to right when canvas opens

Viewing 5 posts - 31 through 35 (of 35 total)
  • Author
    Posts
  • #1792860
    Tom
    Lead Developer
    Lead Developer

    Is this set up on a staging site? I’m not able to find the URLs you shared before – any chance you can re-share them?

    I’m not noticing any of the issues above on your live site.

    #1840202
    nik9

    Hello Tom,

    Sorry, I forgot that case here πŸ™‚

    No, this is the prod system. We have more than one problem. The first problem, that on mobile it does not work on all browsers the same way. On iPhone safari it work ok but on iPhone and Chrome it works but the timing is different.

    Do you see a major issue?

    /* Canvas opens */
    /*
    .ocs-sidebar-active .navigation-stick:not(.slideout-navigation):not(.gen-sidebar-nav) {
        left: 270px;
        transition-duration: 300ms;
        transition-timing-function: unset;
    }
    
    /* push sticky product filter element to the right when canvas opens */
    /*
    .ocs-sidebar-active .customsticky.customsticky-style.hide-on-desktop.sticky-element-cloned.element-is-sticky:not(.slideout-navigation):not(.gen-sidebar-nav) {
        transform: translateX(270px);
        transition-duration: 300ms;
        transition-timing-function: unset;
    }
    
    /* Canvas close */
    /*
    @media screen and (max-width: 768px) {
    .main-navigation:not(.slideout-navigation):not(.gen-sidebar-nav) 	{
        transition-duration: 300ms;
        transition-timing-function: unset;
    	}
    }	
    
    /* push sticky product filter element back when canvas close */
    /*
    .customsticky.customsticky-style.hide-on-desktop.sticky-element-cloned.element-is-sticky:not(.slideout-navigation):not(.gen-sidebar-nav) {
        transform: translateX(0px);
        transition-duration: 300ms;
        transition-timing-function: unset;
    }
    
    /* Custom darken content when canvas is active */
    .ocs-sidebar-active .ocs-close--all:not(.slideout-navigation):not(.gen-sidebar-nav) {
      filter: brightness(0.5);
    }
    #1841677
    Tom
    Lead Developer
    Lead Developer

    I’m not seeing anything obvious in the code, but it’s not uncommon for effects like this to differ across different browsers.

    Any chance you can share a screen recording of what you’re seeing with both browsers? It may make the specific issue more clear to us.

    Let me know πŸ™‚

    #1844978
    nik9

    Hello Tom,

    Sure, see video link (Video 1) in private note section. Tested with iPhone XS latest version.
    On Safari the navigation and sticky section slides to the right and back when I close the canvas. On Chrome it jummps to the right and back after canvas close.

    But something what is also strange. After canvas close, the elements wait some time to slide or jump back. But this was working before in a very nice way (see video 2). There was no change in CCS for the animation.. only plugin and theme updates. And it was working in safari AND chrome. so this is very strange.. πŸ™

    /* Canvas close */
    /*
    @media screen and (max-width: 768px) {
    .main-navigation:not(.slideout-navigation):not(.gen-sidebar-nav) 	{
        transition-duration: 300ms;
        transition-timing-function: unset;
    	}
    }	
    
    /* push sticky product filter element back when canvas close */
    /*
    .customsticky.customsticky-style.hide-on-desktop.sticky-element-cloned.element-is-sticky:not(.slideout-navigation):not(.gen-sidebar-nav) {
        transform: translateX(0px);
        transition-duration: 300ms;
        transition-timing-function: unset;
    }
    #1845060
    David
    Staff
    Customer Support

    I am not sure there is a ‘cure’ for this – do you have it on a staging site ( i cannot see it on the URL provided ) – we can take a quick look to see if theres any obvious reason for it

Viewing 5 posts - 31 through 35 (of 35 total)
  • You must be logged in to reply to this topic.