Site logo

[Resolved] Overlapping Containers Effect

Home Forums Support [Resolved] Overlapping Containers Effect

Home Forums Support Overlapping Containers Effect

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2252490
    Marcel

    Hello,

    I would like to ask if would be possible to create an overlapping effect like in this recording, using GB containers.

    I’ve started a page with three vertical containers (link in the private area), but I’m stuck here.

    May I have your help, please?

    Thank you!

    #2252521
    Ying
    Staff
    Customer Support

    Hi Marcel,

    Can you link us to the example site?

    #2252529
    Marcel

    Hi Yang,

    Sure. It’s
    https://www.vicodo.com, but it’s not wordpress.

    #2252591
    Fernando
    Customer Support

    Hi Marcel,

    Yes, it’s possible and you would need custom CSS.

    First, add my-grid to the CSS classes of the Grid Block as such: https://share.getcloudapp.com/2Num5lmQ

    Then, add this custom CSS in Appearance > Customize > Additional CSS:

    .gb-grid-wrapper.my-grid > .gb-grid-column:first-of-type > .gb-container > .gb-inside-container {
        position:relative;
    }
    
    .gb-grid-wrapper.my-grid > .gb-grid-column:first-of-type > .gb-container > .gb-inside-container > .gb-container {
        position:sticky;
        top: 10px;
        left: 0;
    }
    
    .gb-grid-wrapper.my-grid > .gb-grid-column:last-of-type > .gb-container {
        position:relative;
    }
    
    .gb-grid-wrapper.my-grid > .gb-grid-column:last-of-type > .gb-container > .gb-inside-container {
        position:sticky;
        top: 10px;
        left: 0;
    }

    Result: https://share.getcloudapp.com/qGuOKJxm

    In essence, to achieve the desired effect, we made the needed Containers Sticky.

    Hope this helps!

    #2304723
    Marcel

    Working :). Thank you a lot, Fernando!

    #2306222
    Fernando
    Customer Support

    You’re welcome Marcel!

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