Hi,
I would need to have an item (in my case, a menu box with button) stick to the top of the page when scrolling down.
I have an index of like 200 item connected to a database and i want the menu to stay on top so we dont loose track of what we are looking at when we are low in the list.
I have done it on another website builder with jquerry, does wix can take jquerry?
Here is my list and the menu i want to stick is the one over the list with nom, lieux, date etc
![](https://static.wixstatic.com/media/a27d24_371498e9af5749518eb5e3c4edb1d467~mv2.jpg/v1/fill/w_980,h_404,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/a27d24_371498e9af5749518eb5e3c4edb1d467~mv2.jpg)
Here is examples of what i want to acheive:
http://stickyjs.com/
or
https://codepen.io/Rubikcode/pen/JyqgKw
Thanks !
Hey man could you share the code you used for that element?? Thanks
Hi Guillaume,
Your website looks fabulous!
May I ask how exactly you set up the onViewportEnter?
Since it doesn't work on my site, it only works when I scroll it back to the top of the page.
Thanks!
Danny
Thanks to you, couple of little adjustement and it will be perfect!
Looks perfect, Good work!
lol... yes but don't mind my site, it really in construction (and have been for 4 years now lol)
The said menu is in "index"
http://urbandownfall.wixsite.com/urbandownfall
Graet!
Can you share your a link to your site ? I want to see.
Roi
Hey, great idea man, its working perfect, ive created a line that i put transparent with the hide and show atribute for my menu, at the level i want my menu to appear and the transition is flawless!
Thanks!
Hi,
My suggest is using onViewportEnter to hide and onViewportLeave to show a duplication of the menu that is pinned to the screen.
Good luck!
Roi
Hi,
Thanks for the answer but i have already try that and its not doing what i want.
The problem is that when you scroll down my list, if it stay pinned right where it is, it will be in the middle of the list, i want it to be on top all the time, wich would be the top of the windows when the list reach that level.
Hi Guillaume,
There is no need to use code in this case.
Check this out:
https://support.wix.com/en/article/about-pin-to-screen-6838335
Good luck!
Roi
Following