Skip to content

KeyframeKit / KeyframesFactory / getDocumentStyleSheetsOnLoad

Function
getDocumentStyleSheetsOnLoad()

ts
function getDocumentStyleSheetsOnLoad(obj?: {
  document?: Document;
}): Promise<StyleSheetList>;

Gets a document's stylesheets when it loads, or immediately returns them if it's already loaded.

Parameters

obj?

document?

Document = window.document

The document to get stylesheets from.

Returns

Promise<StyleSheetList>