I wish to apply to my element #slider-information, that when it hits the top on scroll it sticks. I have tried using sticky.js however my code is not working and it is appearing really buggy.
`
`
Can anyone lend a hand to help me out in solving this issue, as previous threads never helped.
i dont think you ll need the .json file from the .stickyjs script anyway. I downloaded it and included only the sticky.js and it works fine. So, remove that -1 error msg
Hi, @bwalls1992, there is also an interaction called “New interaction” on the slider-information div, could you set that to none and then republish?
Hi @bwalls1992, I have been looking and I think something strange is going on with the plugin where the div is getting restyled at run time, I am not sure, I will have to look at the plugin behavior more…
Hi @bwalls1992, thanks for getting back, I would change the structure to put the all the content you want the sticky-column to extend, within the same parent container. I would structure it something like:
Section 1
Sticky-Column
Div (with Content)
Div (with Content)
Div (with Content)
Section 2
This way the sticky element will be stuck for the length of the three inner divs. I hope this helps!
Ive come back to this page and have implemeneted the following… However it doesnt want to stick for some reason, pretty confused as it was before. I have 2 console errors, but i removed them quickly to see if it was them and it wasn’t. I appreciate your patience.
I have placed “#sticky-div” within a column (green div box)