ScrollToElement smoothly animates the page scroll to any DOM element by its ID. It automatically detects the correct scroll container, whether it is the window or a nested scrollable div, making it compatible with OutSystems 11 and ODC layouts out of the box.
The animation duration is fully configurable in milliseconds, allowing anything from an instant jump to a slow cinematic scroll. An optional pixel offset lets you fine-tune the final scroll position, useful for compensating fixed headers or adding breathing room around the target element.