Function draggableGsap
- draggable
Gsap (node, options): 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
to
orquickTo
to invokeposition.set
on a given TJSPosition instance provided. You may provide aeaseOptions
object 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+
forquickTo
support.