Skip to content

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

Promise<CSSStyleSheet>

Throws

  • TypeError  
    • Thrown if the stylesheet could not be imported.

Remarks

See