I have a logo on the top of the header, and under it - a strip with a menu.
I would like the logo to collapse when scrolling, so only the narrow strip would remain.
When I go back to the top of the page - the logo supposed to expand again.
I've put under the menu, on the page itself, a transparent button, "show on all pages".
I've used this code to make it a trigger for the collapse /expand of the logo :
export function collapsebutton_viewportEnter() {
$w("#image5").expand();
}
export function collapsebutton_viewportLeave() {
$w("#image5").collapse();
}
(The logo is "#image5")
I've put the code in the "site" section - so it will work for the whole site.
Apparently, it works only on some pages, and on some - not.
What did I do wrong?
How can I check it?
This is the site:
www.tamirashman.co.il
Thank you! It took some time, but now it works alright. Did it again and again on other sites with no problem. :)
Did they ever fix this bug for you or just leave you hanging? I hope you were able to find some solution to the problem, tamtam!
Id like to hear further into this
Hi, coming back to the issue - so what can I do? is there any solution?
Or a better way to write the code?
Thanks
Looks like a bug on our end. Will look into it.
These are working
https://www.tamirashman.co.il/
https://www.tamirashman.co.il/personal
https://www.tamirashman.co.il/blank-5
these are not
https://www.tamirashman.co.il/about
https://www.tamirashman.co.il/articles
https://www.tamirashman.co.il/news
On what pages does it work? and on what does it not work? send urls
Yes, I do, in freeze mode
do you use header on all pages?