Skip to content
party.js logoparty.js logo

ReferenceBehaviorsInterface

TwinkleOptions

How often and how strongly particles twinkle.

Options for twinkle().

brightnessoptionalnumberdefault0.6

How far a particle’s color moves towards white at the peak of a glint, from 0 (not at all) to 1 (fully white).

glintsoptionalnumberdefault1.5

How many glints a particle catches per second, on average. A particle that lives for one second with the default of 1.5 glints once or twice, at random moments.

lengthoptionalnumberdefault0.22

How long a single glint lasts, from start to end, in seconds. Longer glints look softer.

sizeoptionalnumberdefault0.25

How much a particle grows at the peak of a glint, relative to its size. 0.25 makes it 25% larger.