Hover over HTML Box moves to next anchor...

Hey. I am trying to achieve the following: When I hover over a HTML Box I want the page to scroll to the next anchor. I tried with

“wixLocation.to(‘/anchor5’);” and “import wixLocation from ‘wix-location’;”

but that doesn’t seem to have any effect.

I don’t know if I am missing something but maybe somebody can help me out here.

Cheers

Hi,

wixLocation.to() is used for switching between pages.
What you’re looking for is wixWindow.scrollTo() .

Hope this helps :slight_smile:
Liran.

Great man,

that did the trick :slight_smile: Thnx