Hi
Can someone please help me with writing a code that once a button is clicked will scroll the page to a strip inside the footer? (unfortunately scroll to bottom does not work here).
I’ve already found the code for scrolling to a specific element in the page
Thanks!
Tal
You probably will have to write this code on your MASTER-PAGE.
Create/set an ANCHOR into your FOOTER & put in this CODE. Should normaly work (not tested).
$w.onReady(()=>{
$w('#myElement').onVieportEnter(()=>{
$w('#anchor1').scrollTo()}
})
})
You can also use → onVieportLeave or onClick event.
Here an example…
https://russian-dima.wixsite.com/meinewebsite/reading-position