I am trying to create a site where the opening hero image is visible - and when you scroll down it takes you to the body content but I don’t want to be able to scroll to the top again.
Hi,
You add a strip to the top section of your page, add another anchor below it and use the viewPortEnter of the anchor so that whenever the site visitor scrolls the page and the anchor element is displayed, the strip will collapse . If you don’t add other events, it won’t appear again on your screen so this way it will be displayed only once, when the page is loaded, disappear when the page is scrolled and won’t appear again:
export function anchor1_viewportEnter(event) {
$w('#columnStrip1').collapse();
}