genDefaults

Commons
stable

Return the default IGoToOptions object used by the useGoTo scroll-animation composable. Provides the built-in easing functions (linear, easeInOutCubic, …) and sensible defaults for duration, offset, and container.

API

Signature

Full TypeScript signature sourced from the util file.

typescript

API

Return value

The value returned by this util.

Default options including duration (300 ms), offset (0), easing (easeInOutCubic), and a patterns map with standard easing functions.

Usage

Examples

Ready-to-paste usage snippets.

Inspect or extend the scroll defaults

typescript