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
Signature TypeScript complète, extraite du fichier util.
API
Valeur de retour
La valeur retournée par cet util.
- Default options including duration (300 ms), offset (0), easing (easeInOutCubic), and a patterns map with standard easing functions.
Usage
Exemples
Extraits de code prêts à coller.
Inspect or extend the scroll defaults