So basically it works great, but I have a slight issue.
Sticky element sticks on the top of the div that I have set.
Then if I continue to scroll down the page, while the Sticky element has the class sticky the element goes down as well instead of sticking where it was supposed to.
From your basic example, I 've seen that the sticky element has this inline style
transform: translateZ(0px); top: 144px; position: fixed; width: 332.797px;
from which the top changes dynamically when you scroll down the page itself.
I can't reproduce that behaviour with the exact same code.
So basically it works great, but I have a slight issue.
Sticky
element sticks on the top of thediv
that I have set. Then if I continue to scroll down the page, while theSticky
element has the classsticky
the element goes down as well instead of sticking where it was supposed to.From your basic example, I 've seen that the
sticky
element has this inline styletransform: translateZ(0px); top: 144px; position: fixed; width: 332.797px;
from which thetop
changes dynamically when you scroll down the page itself. I can't reproduce that behaviour with the exact same code.My code is pretty simple:
Your help would be much appreciated!