Type alias: ScrollBehavior
Ƭ ScrollBehavior: "smooth"
| "auto"
| "instant"
| (currentTop
: number
, targetTop
: number
) => { animationFrameCount
: number
; easing
: BezierFunction
}
The scroll behavior to use when scrolling to a location. You can also pass a custom scroll behavior function that returns an object with the number of animation frames and the easing function based on the current scroll top and the targetTop.