Function draggableGsap
- draggableGsap(
node: HTMLElement,
options: DraggableGsapOptions,
): ActionReturn<Partial<DraggableGsapOptions>>Parameters
- node: HTMLElement
The node associated with the action.
- options: DraggableGsapOptions
Draggable Gsap options.
Returns ActionReturn<Partial<DraggableGsapOptions>>
Action lifecycle functions.
- node: HTMLElement
Provides an action to enable pointer dragging of an HTMLElement using GSAP
toorquickToto invokeposition.seton a given #runtime/svelte/store/position!TJSPosition instance provided. You may provide aeaseOptionsobject sent to the tween to modify the duration / easing. When the attached boolean store state changes the draggable action is enabled or disabled.Note: Requires GSAP
3.10+forquickTosupport.