Skip to content
party.js logoparty.js logo

Reference

API reference

Everything party.js exports, grouped by what you use it for.

Effects

10 entries

Ready-made effects you can use with a single function call.

Custom effects

15 entries

Build your own effects: control where particles come from, when they are emitted and how they look.

Samplers

15 entries

Pick values for each particle: random numbers, directions, colors and gradients.

Particles

10 entries

The particle itself, and the shapes it can be drawn as.

Behaviors

17 entries

Modify particles while they are alive: gravity, drag, twinkling, fading and scaling, with easings to smooth the transitions.

Utilities

7 entries

Colors, vectors, rotations and errors.