Lift Field
A field of particles that gather into a rippling ring around the pointer, trail behind it, and blast outward on a click.
pixikit.com/docs/effects/lift-field
Customize
Colors3 of 10
Color
Color mode
Color speed0.05
Particle shape
Count1500
Particle size0.90
Particle variance1.00
Magnet radius9.0
Ring radius7.0
Field strength10.0
Wave amplitude1.0
Wave count3
Wave speed0.40
Rotation speed0.0
Pulse speed3.0
Depth factor1.0
Ambient0.25
Lerp speed0.05
Auto animate
Interactive
Click burst
Intro
Light mode
Opacity1.00
Props
28| Name | Type | Default | Description |
|---|---|---|---|
colors | string[] | ["#5227FF", "#FF9FFC", "#B497CF"] | The palette the particles are coloured from. How it is spread depends on `colorMode`. |
color | string | "" | A single colour for every particle. Overrides `colors` when set. |
colorMode | "conic" | "radial" | "random" | "conic" | Spreads the palette around the pointer, outward from the ring, or gives each particle a random colour from it. |
colorSpeed | number | 0.05 | How fast the conic palette turns around the pointer. 0 keeps it still. |
particleShape | "capsule" | "sphere" | "box" | "tetrahedron" | "capsule" | The shape of the particles. Capsules stretch into dashes that point at the pointer. |
count | number | 1500 | The number of particles in the field. |
particleSize | number | 0.9 | The size of the particles. |
particleVariance | number | 1 | How much each particle pulses in size, 0 to 1. |
magnetRadius | number | 9 | The size of the area around the pointer whose particles get pulled into the ring. |
ringRadius | number | 7 | The radius of the ring the particles form. |
fieldStrength | number | 10 | How tightly the particles line up on the ring. Lower values spread them into a wider band. |
waveAmplitude | number | 1 | How much the ring ripples. 0 gives a clean circle. |
waveCount | number | 3 | The number of ripples around the ring. |
waveSpeed | number | 0.4 | How fast the ripples travel around the ring. |
rotationSpeed | number | 0 | How fast the particles orbit the pointer. Negative values orbit the other way. |
pulseSpeed | number | 3 | How fast the particles pulse in size. |
depthFactor | number | 1 | The strength of the depth: particles in front grow, particles behind shrink and soften. |
ambient | number | 0.25 | How visible the particles away from the ring are, 0 to 1. |
lerpSpeed | number | 0.05 | How quickly the particles follow the pointer. Lower values leave longer trails. |
autoAnimate | boolean | true | The ring drifts around on its own after a couple of seconds without pointer movement. |
interactive | boolean | true | The ring follows the pointer or finger. Turn off for a purely ambient background. |
clickBurst | boolean | true | Pressing pulls the ring in and spins it faster; releasing blasts the particles outward. |
intro | boolean | true | The particles float up into place on mount. |
lightMode | boolean | false | Deepens pale colours so the particles stay visible on light backgrounds. |
opacity | number | 1 | The overall opacity, 0 to 1. |
maxDevicePixelRatio | number | 2 | The highest pixel ratio the canvas renders at. |
className | string | None | |
style | CSSProperties | None | Inline styles for the container. |