ScrollTo is not working

Hi Team,

I have added a small code below to my wix site: https://www.cityzen.social

Code:
import wixLocation from ‘wix-location’ ;
$w . onReady ( function () {

let query = wixLocation.query ;

if ( query.scroll == true ) $w ( “#contactForm” ). scrollTo ()
. then ( ( ) => {
console . log ( “Done with scroll” );
} );
//$w(“#contactForm”).scrollTo();
//console.log(“console log message is”+ query);

});

But when I go to the link: https://www.cityzen.social/?scroll=true
, its not working for some reason, could you please advise on what am I doing wrong here?

Try:

//...
if(query.scroll === "true"){
$w("#contactForm").scrollTo()
.then(() => console.log("scroll_done"));
}
//...

Also make sure there’s no page transition settings that collides with this scroll.

Amazing, thanks a lot. It finally worked!