artboard-deluxe / ArtboardScrollIntoViewOptions
ArtboardScrollIntoViewOptions
ArtboardScrollIntoViewOptions =
AnimationOptions&object
Defined in: types/index.ts:348
Options for scrolling an area of the artboard into view.
Type declaration
axis?
optionalaxis:"x"|"y"|"both"
Which axis to scroll.
behavior?
optionalbehavior:"smooth"|"instant"|"auto"
The scroll behaviour.
- Smooth: Always animates the transition.
- Instant: Directly apply the transform and scale.
- Auto: Uses smooth, but switches to instant if an animation is currently running.
scale?
optionalscale:"none"|"full"|"blocking"
Define whether the artboard should be scaled.
- None: Keeps the current artboard scale.
- Full: Scales the artboard so that the target element fully covers the available space.
- Blocking: Scales the artboard so that the target element covers the non-blocking area.