KeyframeKit / KeyframesFactory / importStyleSheet
Function importStyleSheet()
ts
function importStyleSheet(url: string): Promise<CSSStyleSheet>;Imports a stylesheet from a URL.
Parameters
url
string
The URL of the stylesheet to import.
Returns
Throws
StyleSheetImportError- Thrown if the stylesheet could not be imported.
Remarks
Note: @import rules won't be resolved in imported stylesheets. See more.