Scrolls an element into view only if it's not already visible in the viewport.
Respects user's motion preferences by using 'instant' scroll for users who prefer reduced motion.
For 'start': adds offset pixels above the element.
For 'end': adds offset pixels below the element.
For 'center' and 'nearest': uses standard scrollIntoView behavior without offset.
Parameters
el: HTMLElement
The HTML element to scroll into view if not visible
blockValue: ScrollLogicalPosition
The vertical alignment ('start', 'center', 'end', 'nearest')
offset: number = 100
Offset in pixels for 'start' (top gap) and 'end' (bottom gap) positions (default: 100)
Scrolls an element into view only if it's not already visible in the viewport. Respects user's motion preferences by using 'instant' scroll for users who prefer reduced motion. For 'start': adds offset pixels above the element. For 'end': adds offset pixels below the element. For 'center' and 'nearest': uses standard scrollIntoView behavior without offset.