[Resolved] delay for the sticky navigation

Home Forums Support [Resolved] delay for the sticky navigation

Home Forums Support delay for the sticky navigation

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2352778
    baidy

    Hello GP support,

    I would like to know if it’s possible to set a delay for an element that is sticky.

    what I mean is only after you scroll down a certain height does the sticky element activate, I would like to have this function applied to this code :

    html, body {
        overflow-x: unset !important;
    }
    .gb-container.gb-container-92ee59c8 {
        position: sticky;
        top: 132px;
    	  z-index: 998;
    }
    
    @media (max-width: 1307px) {
    .gb-container.gb-container-92ee59c8 {
        top: 62px;
    }

    On my website the sticky element(slider) activate before the sticky I set up with GP customizer, so there is a delay

    thanks

    #2352789
    Leo
    Staff
    Customer Support

    Hi there,

    Unfortunately that is not possible without a custom javascript solution.

    Sorry about that!

    #2352800
    baidy

    alright, so GP only deals with CSS.

    Do you where I could find help to add a custom javascript solution?

    thanks

    #2352817
    Leo
    Staff
    Customer Support

    We try to help when the solution isn’t too complicated or if there is something already available.

    Here is what our support covers:
    https://generatepress.com/what-support-includes/

    You can see the Codeable recommendation at the bottom of the article, or post your question in a general WP forum like this:
    https://wordpress.stackexchange.com/

    Thanks for your understanding!

    #2352827
    baidy

    thanks

    will do

    #2352833
    Leo
    Staff
    Customer Support

    No problem 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.