Archived topic
delay for the sticky navigation
5 replies · Started by baidy on September 24, 2022
Hello GP support,
I would like to know if it's possible to set a delay for an element that is sticky.
what I mean is only after you scroll down a certain height does the sticky element activate, I would like to have this function applied to this code :
html, body {
overflow-x: unset !important;
}
.gb-container.gb-container-92ee59c8 {
position: sticky;
top: 132px;
z-index: 998;
}
@media (max-width: 1307px) {
.gb-container.gb-container-92ee59c8 {
top: 62px;
}
On my website the sticky element(slider) activate before the sticky I set up with GP customizer, so there is a delay
thanks
Hi there,
Unfortunately that is not possible without a custom javascript solution.
Sorry about that!
alright, so GP only deals with CSS.
Do you where I could find help to add a custom javascript solution?
thanks
We try to help when the solution isn't too complicated or if there is something already available.
Here is what our support covers:
https://generatepress.com/what-support-includes/
You can see the Codeable recommendation at the bottom of the article, or post your question in a general WP forum like this:
https://wordpress.stackexchange.com/
Thanks for your understanding!
thanks
will do
No problem :)