I want to create a button on my website ( www.woutvanheck.com ), which activates a slow autoscroll to the buttom of the page when visitors click on it. In this way my visitors don’t have to scroll from photo to photo, but can sit back and just watch what is in front of them. Is it possible to create this by writing some code, or is it maybe possible to change the scroll speed of an anchor? I don’t have any experience with writing code, so I’d really like some help.
You can do that without using code in the Wix Editor already, simply set the page to scroll down to something like an anchor here.
https://support.wix.com/en/article/adding-and-setting-up-an-anchor-menu
To do it through code you have a variety of options with scrollTo
Anchor Scroll To - https://www.wix.com/corvid/reference/$w.Anchor.html#scrollTo
Page Scroll To - https://www.wix.com/corvid/reference/wix-window.html#scrollTo
Page Scroll By - https://www.wix.com/corvid/reference/wix-window.html#scrollBy
Page Scroll To (with animations) -
https://www.wix.com/corvid/reference/wix-window.html#ScrollToOptions
Element Scroll To - https://www.wix.com/corvid/reference/$w.Element.html#scrollTo
Also, if you want to have a long list of images like that for users to view, then you might want to look at introducing something like lazy loading into the page. You can view Nayeli (Code Queen) tutorial about it here - https://codequeen.wixsite.com/lazy-loading
Youtube video of tutorial - Auto Load Content on Scroll to create Lazy Loading on Wix using Corvid
If you search the forum for ScrollTo you will find other previous posts that might help you too.
Thanks for your fast answer
But is it possible to change the speed of the scroll in any way? I want it to be really slow.
It’s technically possible, but it would probably require some serious concessions on your part. If you’re interested you can reach out to me directly.
Hi, i have the same question. How to affect the scroll speed when scrolling to anchors like from an Menu? It would also be really helpfull if the different Velo scrollTo() functions can accept a parameter for the scroll speed.
Scrollfunctionality is badly supported by wix, the same for drag&drops and keyboard control.