How long (ms) to keep correcting the scroll position while the page is still
shifting layout (e.g. lazy-loaded content above the target resolving). Defaults to 3000.
OptionalonComplete
onComplete?:()=>void
Called once the correction window elapses.
OptionalyOffset
yOffset?:number| (()=>number)
A fixed offset in px, or a function returning one (e.g. to clear a sticky header),
subtracted from the target's position.
How long (ms) to keep correcting the scroll position while the page is still shifting layout (e.g. lazy-loaded content above the target resolving). Defaults to 3000.