I am trying to create a layout similar to this where there is a feed of images that scroll, but the two boxes on the side stay fixed, but can still scroll to reveal the rest of their contents.
Maybe someone can help me wrap my head around what they are doing on the sample site I posted.
The page is called “Product Page - Stage” on my read-only.
Regular CSS position: fixed; could work but depend on the design you want (not in your case beacuse in some point by JS the position:fixed remove and you can regular scroll to the footer)
How to add data-sticky-container (remember bound?) attribute? and other attributes - very easy
JS - Desktop only:
Most of the time you dont want sticky on mobile so use this (“data-sticky-for” tablet/desktop webflow breakpoint) <img src="http://placehold.it/250x250" class="sticky" data-margin-top="20" data-sticky-for="768" data-sticky-class="is-sticky">
NOTE: You see the results only on the publish / live website
STEP 2 - read docs and try this. If this wont work add URL
Awesome! Yes this is exactly what Im trying to do thank you.
I think I was able to get it to work alright, but when the VH gets too small, it disables the sticky. Is there any data attribute that will allow it to work with a smaller window size?
Again. Sticky on mobile work the same as desktop but will hide most of the content. What code you use to install the plugin? (data-sticky-for - disable sticky on mobile. Remove this is if you want)
I’d like to keep the data-sticky-for attribute for VW, but on desktop, sticky disappears at a smaller VH, and I am trying to pinpoint why in the script.
This is not valid option: data-sticky-container="product-cols" (its like writing "data-sticky-bla-bla=“wow” - no meaning) -
parent is “data-sticky-container” (or entire page - if you dont use this) - child you want to “stick” use -
"class=“sticky” (and “options” if you want to change the Default).
Inside your link i dont see any sticky effect (no errors - but wrong implementation)
ALSO - what do you mean when you saying “smaller VH” (very general term)