Hello,
I have a gallery linked to a selection tag menu that jumps to anchor points throughout the page, however I would like to jump straight to the anchors after you click a menu item, rather than slowly scroll down the page. Is this possible with velo? Please find my current code below:
import wixData from ‘wix-data’;
$w('#selectionTags1').onChange(() => {
let selectedTag = $w('#selectionTags1').value;
for (var i = 0; i < selectedTag.length - 1; i++) {
if (selectedTag.length > 1) {
selectedTag.shift();
}
}
setTimeout(() => {
$w('#selectionTags1').value = [];
$w('#selectionTags1').value = selectedTag;
}, 1)
let filter = wixData.filter();
if (selectedTag.length>0) {
filter = filter.hasSome("arraystring", selectedTag);
}
$w('#dataset1').setFilter(filter);
});
Thank you