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

Function pauseAnimations

packages/core/src/runtime/adapters/css.ts:80–89  ·  view source on GitHub ↗
(animations: Animation[])

Source from the content-addressed store, hash-verified

78 };
79
80 const pauseAnimations = (animations: Animation[]) => {
81 for (const animation of animations) {
82 try {
83 animation.pause();
84 } catch (err) {
85 // ignore animation edge-cases
86 swallow("runtime.adapters.css.site4", err);
87 }
88 }
89 };
90
91 const restoreInlineStyles = (entry: (typeof entries)[number]) => {
92 if (entry.baseDelay) {

Callers 1

createCssAdapterFunction · 0.85

Calls 2

swallowFunction · 0.90
pauseMethod · 0.65

Tested by

no test coverage detected