MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / getAnimationsForElement

Function getAnimationsForElement

packages/core/src/runtime/adapters/css.ts:14–21  ·  view source on GitHub ↗
(el: HTMLElement)

Source from the content-addressed store, hash-verified

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

Callers 1

createCssAdapterFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected