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:283

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

Parameters ​

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

Returns ​

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