* Retrieves animation options for the current element. * @param el - Element to retrieve options for. * @returns
(el: Element)
| 464 | * @returns |
| 465 | */ |
| 466 | function 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). |