MCPcopy
hub / github.com/formkit/auto-animate / AnimationController

Interface AnimationController

src/index.ts:14–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 * Allows start/stop control of the animation
13 */
14export interface AnimationController<P = unknown> {
15 /**
16 * The original animation parent.
17 */
18 readonly parent: Element
19 /**
20 * A function that enables future animations.
21 */
22 enable: () => void
23 /**
24 * A function that disables future animations.
25 */
26 disable: () => void
27 /**
28 * A function that returns true if the animations are currently enabled.
29 */
30 isEnabled: () => boolean
31 /**
32 * (Svelte Specific) A function that runs if the parameters are changed.
33 */
34 update?: (newParams: P) => void
35 /**
36 * (Svelte Specific) A function that runs when the component is removed from the DOM.
37 */
38 destroy?: () => void
39}
40
41/**
42 * A set of all the parents currently being observe. This is the only non weak

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…