Hi,
I have a header that has 3 sections on top of each other.
I would like only one of them (the 3rd) to be sticky when scrolling.
Can someone help me, with a little input?
Daniel
Hi,
I have a header that has 3 sections on top of each other.
I would like only one of them (the 3rd) to be sticky when scrolling.
Can someone help me, with a little input?
Daniel
Try setting your 3rd section’s position to sticky with a top value like 0 or 10px.
Yes, I think ‘Sections’ should be sticky capable.
I do not see that sections can be ‘sticky’.
Only a Header can be sticky, and there can be only one Header per post type, I think.
Multiple headers might solve this stickiness problem, where either one can be sticky.
Anyone have words of wisdom for this?
We can set the position property’s value to sticky with a top value to make any element as sticky.
Example: Sticky Columns – Bricks Sections.
Thank you so much for the super quick reply!
Sorry, I didn’t see the link in your first reply, just my first day at Bricks :0/
How did you end up achieving making 1 section sticky in a header with multiple sections?
Giving a section in my header the position:sticky and top: 0 value didn’t work.
this adds or remove class depending on the height value it is 180 now you can change it to anything.
Thank you! Different approach but same goal … will give that a try!
I have updated this script for a while ago
new script adds scroll direction classes as well
now that we have selector detector feature with bricks 2.0+ it is possible to select these class names and style it with nocode completely just run the script and handle styles with selector detector ![]()