@microsoft/fast-foundation > HorizontalScroll > scrollToPosition
HorizontalScroll.scrollToPosition() method
Handles scrolling with easing
Signature:scrollToPosition(newPosition: number, position?: number): void;
Parameters
Parameter | Type | Description |
---|---|---|
newPosition | number | position to scroll to |
position | number | starting position |
void