What if i have more than one sticky element on a page, i want to unstick one, and stick another element. Please help, friends
Hi @cyberdave, just like Sergey above, Iām looking to implement multiple sticky elements on a single page.
This is how it should work:
1. You scroll a little bit and the first dog shows up and sticks, the background keeps scrolling a bit and then, the dog should scroll up as wellā¦
2. A second dog shows up, sticks and repeats the same behaviour.
I found this jquery script that does exactly that:
http://leafo.net/sticky-kit/ (take a look a #2 example āMany Sticky Itemsā)
However, I have no idea how to actually implement this.
Could anyone shed some light on this?
Thanks!
Hi everyone! I may have figured out an answer with no custom code. Hereās a link to the solution. Iām happy to explain how it works if anyone is interested.
@DuncanHamra Could you please republish the āsolutionā link from above? Iām really interested in seeing how you were successful with this implementation.
Thanks!