Skip to content

Documentation / @ripl/core / createScene

Function: createScene()

createScene(...options): Scene<Context<Element, Record<string, unknown>>>

Defined in: packages/core/src/core/scene.ts:231

Factory function that creates a new Scene instance from a context, selector, or element.

Parameters

ParameterType
...options[string | Context<Element, Record<string, unknown>> | HTMLElement, SceneOptions]

Returns

Scene<Context<Element, Record<string, unknown>>>