ScrollTriggerLike interface
The part of a ScrollTrigger instance the adapter reads.
import type { ScrollTriggerLike } from '@dioramajs/diorama/gsap'interface ScrollTriggerLikeMembers
| Name | Type | Description |
|---|---|---|
readonly animation? | { progress: () => number } | null | The animation the trigger controls. |
readonly enabled? | boolean | Whether the trigger is enabled. |
readonly pin? | Element | null | The pinned element, if any. |
readonly progress | number | Scroll progress of the trigger, 0..1. |
readonly trigger? | Element | null | The trigger element. |
readonly vars? | { readonly scrub?: unknown } | The trigger's config. |
Also exported from @dioramajs/gsap.
Defined in packages/gsap/src/types.ts.