Skip to content

Streamers API

Streamers

Extends Effect.

Factory Function

typescript
createStreamers(config?: StreamersConfig)

Methods

See Effect for the full method reference: mount(), start(), pause(), resume(), configure(), withFade(), and destroy().


StreamersConfig

typescript
interface StreamersConfig {
    count?: number;
    colors?: string[];
    speed?: number;
    scale?: number;
}
PropertyTypeDefaultDescription
countnumber20Number of streamers. Automatically halved on small screens.
colorsstring[]STREAMER_COLORSArray of hex color strings for the streamers.
speednumber1Fall speed multiplier. Higher values make streamers fall faster.
scalenumber1Scales streamer sizes, widths, and physics proportionally.