Based on MDN documentation of scrollIntoView the options for behavior are auto and smooth not instant.
Updating documentation to reflect that for users who read this for insight into how to write a custom scroll function (for things like offset for example).
Based on MDN documentation of
scrollIntoView
the options forbehavior
areauto
andsmooth
notinstant
.Updating documentation to reflect that for users who read this for insight into how to write a custom scroll function (for things like offset for example).
https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView#parameters