Skip to content

KeyframeKit / KeyframesFactory / getAllStyleSheetKeyframesRules

Function
getAllStyleSheetKeyframesRules()

ts
function getAllStyleSheetKeyframesRules(obj: {
  in: CSSStyleSheetSource;
}): ParsedKeyframesRules;

Gets all the CSS keyframes rules in a stylesheet or stylesheet list, then converts them to Web Animations API keyframes.

Parameters

obj

in

CSSStyleSheetSource

The style sheet or style sheet list to get keyframes from.

Returns

ParsedKeyframesRules

Throws

  • SourceTypeError  
    • Thrown if source is not a CSSStyleSheet or a StyleSheetList.

See Also

Referenced Here