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

Function getOptions

src/index.ts:466–470  ·  view source on GitHub ↗

* Retrieves animation options for the current element. * @param el - Element to retrieve options for. * @returns

(el: Element)

Source from the content-addressed store, hash-verified

464 * @returns
465 */
466function getOptions(el: Element): AutoAnimateOptions | AutoAnimationPlugin {
467 return TGT in el && options.has((el as Element & { __aa_tgt: Element })[TGT])
468 ? options.get((el as Element & { __aa_tgt: Element })[TGT])!
469 : { duration: 250, easing: "ease-in-out" }
470}
471
472/**
473 * Returns the target of a given animation (generally the parent).

Callers 4

updatePosFunction · 0.85
remainFunction · 0.85
addFunction · 0.85
removeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…