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
TypeError- Thrown if the stylesheet could not be imported.
Remarks
@importrules won't be resolved in imported stylesheets. See more.- This polyfill exists because Safari dosen't support CSS Modules (see this bug).