Skip to main content

CotomyScrollOptions

Options for scrolling methods.

Constructor

  • new CotomyScrollOptions(init?: Partial<CotomyScrollOptions>) Initializes scroll options with defaults.

Properties

PropertyTypeDescription
behaviorScrollBehaviorScrolling behavior (default: smooth).
onlyIfNeededbooleanScroll only when the element is out of view.
blockScrollLogicalPositionVertical alignment when scrolling.
inlineScrollLogicalPositionHorizontal alignment when scrolling.
resolveBehaviorScrollBehaviorResolved behavior.

Static Methods

MethodDescription
from(options?)Normalizes input into a CotomyScrollOptions instance.