Answer the question
In order to leave comments, you need to log in
Sticky plugin like VK?
If ready-made plug-ins for sticky sidebar working on the principle of profile in VK
Sticks part is long in height, so it should stick to the bottom when we scroll down, then be static when we scroll over the overflow area and stick back up
All plugins that I found use top/bottom calculations for each event on the scroll. because of which everything works extremely crookedly. In VK, they only catch moments of breakpoints and change fixed / static and bottom / top. and also margin-top.
I tried to write my own, but I don’t have enough strength :)
https://gist.github.com/dpmango/50f44d149d194986f9...
Maybe someone came across and have open source projects? or maybe from a personal library of components, I would buy a paid version)
Answer the question
In order to leave comments, you need to log in
Great idea, by the way, for sidebars. I'll write my sticky in the vyhi. I did it about a year and a half ago on jquery, but it turned out clumsy and generally sucks. But it can help
https://codepen.io/anon/pen/mXNBvY
Here on the working page - there the sidebar is short to see how it works, but if you open it in responsize mode at a resolution, say 1280 by 500, then the effect will be noticeable
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question