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
The style sheet or style sheet list to get keyframes from.
Returns
Throws
SourceTypeError- Thrown if source is not a
CSSStyleSheetor aStyleSheetList.
- Thrown if source is not a