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

Remarks

Note: @import rules won't be resolved in imported stylesheets. See more.