Bounce Pit
A soft-lit pit of physics balls you can shove with the pointer, grab, throw and blast apart. They pile up under gravity or float and drift without it.
pixikit.com/docs/effects/bounce-pit
Customize
Count200
Colors1 of 10
Material
Min size0.50
Max size1.00
Gravity0.00
Friction0.9975
Wall bounce0.95
Bounce0.85
Depth2.0
Drift0.40
Follow cursor
Cursor size1.0
Grab
Click effect
Light color
Light intensity1.0
Exposure1.00
Shadows0.60
Intro
Dpr2.00
Props
23| Name | Type | Default | Description |
|---|---|---|---|
count | number | 200 | The number of balls in the pit. |
colors | string[] | ["#ffffff"] | The ball colours, handed out in turn; any CSS colours. |
material | "satin" | "matte" | "gloss" | "frosted" | "metal" | "satin" | The surface finish: soft satin, chalky matte, polished gloss, see-through frosted or brushed metal. |
minSize | number | 0.5 | The smallest ball radius; the view is about 18 units tall. |
maxSize | number | 1 | The largest ball radius. |
gravity | number | 0.5 | The pull toward the floor: 0 lets the balls float, around 0.5 piles them up. |
friction | number | 0.9975 | How much speed the balls keep each frame; 1 never slows them down. |
wallBounce | number | 0.95 | How much speed the balls keep when they hit the edges, 0 to 1. |
bounce | number | 0.85 | How bouncy the balls are against each other, 0 to 1. |
depth | number | 2 | How deep the pit is, so balls can sit in front of and behind each other. |
drift | number | 0 | A gentle wandering that keeps floating balls moving on their own. |
followCursor | boolean | true | A ball follows the pointer and shoves the others out of the way. |
cursorSize | number | 1 | The radius of the pointer ball. |
grab | boolean | true | Press on a ball to pick it up, drag it around and throw it. |
clickEffect | "burst" | "none" | "burst" | A click on an empty spot blasts the nearby balls away with a flash of light. |
lightColor | string | "#ffffff" | The colour of the light that follows the pointer and lights the balls around it. |
lightIntensity | number | 1 | The brightness of the pointer light. |
exposure | number | 1 | The overall brightness of the balls. |
shadows | number | 0.6 | The strength of the soft shadows the balls cast on each other. |
intro | boolean | true | The balls pour in from the top on mount, or burst out from the centre when gravity is near zero. |
dpr | number | 2 | The highest device pixel ratio drawn, capped at 2. |
className | string | None | |
style | CSSProperties | None | Inline styles for the container. |