(el: HTMLElement)
| 12 | }> = []; |
| 13 | |
| 14 | const getAnimationsForElement = (el: HTMLElement): Animation[] => { |
| 15 | if (typeof el.getAnimations !== "function") return []; |
| 16 | try { |
| 17 | return el.getAnimations(); |
| 18 | } catch { |
| 19 | return []; |
| 20 | } |
| 21 | }; |
| 22 | |
| 23 | const resolveEntryStartSeconds = (el: HTMLElement): number => |
| 24 | params?.resolveStartSeconds |